The present invention relates to a maternal nutrition composition comprising myo-inositol and vitamin B2. Such a composition has been specifically designed to provide optimized nutrition to a woman desiring to get pregnant, to a pregnant woman and/or to a lactating woman. The present invention also relates to vitamin B2 for use to treat or prevent gestational diabetes mellitus and a condition associated therewith in a pregnant subject or its offspring, wherein said vitamin B2 is administered to said subject before and/or during pregnancy and/or during lactation.