Gestational diabetes mellitus (GDM) is a condition characterized by high blood sugar levels that develop during pregnancy and usually disappear after giving birth. It can occur at any stage of pregnancy but is more common in the second and third trimesters. GDM can increase the risk of complications for both the mother and the baby.