Maternal diabetes can affect the fetus in several ways. The elevated blood glucose levels in the mother can lead to hyperglycemia in the fetus, causing the fetal pancreas to produce more insulin, a condition known as fetal hyperinsulinemia. This can result in a range of complications including macrosomia (excessive birth weight), which can lead to delivery complications such as shoulder dystocia.