A keto diet could improve blood sugar, gut microbiota composition, body mass index (BMI), and waist circumference more than a Mediterranean diet, but only in the short term.