Gestational diabetes mellitus (GDM) is a serious health issue for both mother and child. As GDM is common worldwide, healthcare providers pay attention while screening and managing pregnant women to ensure good outcomes for both mother and child. This study aims to identify the risk factors associated with developing GDM in pregnant women attending antenatal care clinics in Prince Sultan Military Medical City (PSMMC) in Riyadh, Saudi Arabia. This is a case-control study that utilized patients' medical records for data collection. The study included 317 pregnant Saudi women who attended antenatal care clinics and antenatal diabetic clinics in PSMMC from May 2022 to May 2023. Cases were defined as women who met the inclusion and exclusion criteria and had a positive oral glucose tolerance test (OGTT) result, while controls were defined as women in the same age group and gravidity who had negative OGTT. Analysis was conducted using SPSS Statistics version 29.0 (IBM Corp. Released 2021. IBM SPSS Statistics for Windows, Version 29.0. Armonk, NY: IBM Corp.) Results: The total number of cases was 132 out of 313 total samples, representing 42.2% of the total sample. Three factors were associated with an increased risk of developing GDM, including a family history of diabetes (p-value <0.001), a history of GDM (p-value <0.001), and macrosomia (p-value = 0.020). The study also found higher BMI and advanced maternal age were risk factors for GDM (p-value = 0.004, 0.007), respectively. However, the study did not find a significant association between GDM and other factors, such as chronic disease prevalence, history of miscarriage, or history of fetal death. The study identified several risk factors associated with an increased risk of GDM including family history of diabetes, history of GDM, macrosomia, overweight/obesity, and advanced maternal age. It is recommended that antenatal care providers screen for GDM risk factors and closely monitor overweight, obese, or older women. Education and counseling on healthy lifestyle habits, such as maintaining a healthy weight and engaging in physical activity, may also be beneficial for preventing GDM. Further research is needed to confirm and identify additional risk factors for GDM.