After correcting for age, sex, smoking, education, physical activity, alcohol intake, daily calories, body mass index, and use of lipid-lowering medication or proton pump inhibitors, higher microbiome diversity was associated with lower insulin resistance and a lower prevalence of type 2 diabetes.