Background. This study aims to compare the cognitive function of women with T1DM during and after pregnancy, as well as one year post-delivery. Additionally, it aims to investigate the impacts of leptin and body mass index on cognitive function. Methods. A prospective longitudinal cohort study was conducted involving 64 pregnant women with T1DM. Cognitive function was assessed using a cognitive assessment battery during the first trimester, immediately after delivery, and one year postpartum for the final assessment. This program evaluates a wide range of cognitive abilities and provides a comprehensive cognitive well-being score (high–moderate–low), identifying strengths and weaknesses in reasoning, memory, attention, coordination, and perception. Results. The average age of the participants was 30.9 years, with a mean diabetes duration of 14.9 years. Pregnant women with a BMI of 30 kg/m2 or higher faced an increased risk of reduced cognitive function, memory, and reasoning. Additionally, mothers with lower overall cognitive function and memory levels had significantly higher concentrations of leptin in their blood. Conclusions. Cognitive functions—particularly reasoning and attention—are adversely affected in women with T1DM during pregnancy and shortly after delivery. Elevated BMI and leptin levels can be linked to worse cognitive outcomes in this population.