This research explores the impact of health factors on the prevalence of syphilis among pregnant women receiving care at Banadir Hospital in Mogadishu, Somalia. A sample size of 150 individuals was studied, revealing that the majority were young (aged 21–30) and married, and had high levels of education and income. A syphilis prevalence rate of 0.7% was recorded, and many participants lacked awareness concerning transmitted diseases (STDs). Limited levels of education (64.7) and income (54) were identified as potential barriers to healthcare access, resulting in increased susceptibility to infections. The records show that there are pregnancies and late-stage pregnancies, with a greater chance of infection due to limited involvement in healthcare services due to the individual's past experiences of motherhood and pregnancy complications. Despite being uncommonly seen the results emphasize the challenges in understanding sexually transmitted diseases (STDs) due to economic and educational limitations which affect awareness and access to medical care enhancing screening for syphilis during pregnancy promoting public awareness programs on healthcare issues and offering specific interventions along with socioeconomic help could enhance the health outcomes of mothers and decrease the risk of disease transmission.