Diabetes mellitus (DM) is a systemic chronic metabolic disorder characterized by increased insulin resistance and/or β- cell defects. It affects all ages from the foetal life, neonates, childhood to late adulthood. Gestational diabetes is a critical risk factor for congenital heart diseases (CHDs). Moreover, the risk increases with low maternal education, high body mass index at conception, undiagnosed pre-gestational diabetes, inadequate antenatal care, improper diabetes control, and maternal smoking during pregnancy. Maternal DM significantly affects the foetal heart and foetal–placental circulation in both structure and function. Cardiac defects, myocardial hypertrophy are three times more prevalent in infants of diabetic mothers (IDMs). Antenatal evaluation of the cardiac function and structures can be performed with foetal electrocardiography and echocardiography. Postnatal cardiac evaluation can be performed with natal and postnatal electrocardiography and echocardiography, detection of early atherosclerotic changes by measuring aortic intima-media thickness, and retinal vascular changes by retinal photography. Ameliorating the effects of diabetes during pregnancy on the offspring depends mainly on pregestational and gestational diabetes prevention. However, other measures to reduce the risk, such as using medications, nutritional supplements, or probiotics, still need more research. This review discusses the mechanism of foetal sequels and the risk factors that increase the prevalence of CHDs in gestational DM, the various cardiac outcomes of gestational DM on the foetus and offspring, cardiac evaluation of foetuses and IDMs, and how to alleviate the consequences of gestational DM on the offspring.