1α,25-Dihydroxyvitamin D3 ameliorates diabetes-induced bone loss by attenuating FoxO1-mediated autophagy. Here, FOXO1 is linked to diabetes mellitus.