Diabetes mellitus is one of the most common and important medical complications affecting pregnancy. It can predate the pregnancy ('pre-existing diabetes') or arise during pregnancy ('gestational diabetes' GDM). Typically GDM resolves once the pregnancy has ended.