Diabetes is a major threat to public health that may leads to severe complications and premature death. Type 2 diabetes can be prevented or at least postponed by lifestyle intervention. Previous studies have shown that some types of metabolites are associated with the development of diabetes in adulthood. However, there is a lack of comprehensive assessments on how different types of metabolites are affected by lifestyle factors and to what extent such metabolic changes mediate the association between lifestyle factors and diabetes. We aim to identify metabolites affected by lifestyle factors using genetic variants as instrumental variables in UK Biobank participants. We will also quantify the proportion of lifestyle-diabetes association mediated by the affected metabolites and investigate the potential interactions between these metabolites and the genetic susceptibility to diabetes. We therefore need to apply for an account in the UPPMAX system to download and store the genetic data and perform subsequent genetic analyses such as calculating genetic risk scores and GWAS analyses.