Background: Self-medication among pregnant women represents a serious risk to the mother’s and child’s health. It is a global concern that requires careful attention from professionals in healthcare. In Morocco, there is a lack of available data on self-medication and predicting variables among pregnant and postpartum women. The purpose of this study was to determine the incidence of self-medication and the factors that contributed to it among pregnant and postpartum women in the Sous Massa Regional Hospital.Methods: A cross-sectional study was conducted using a pretested questionnaire among 420 pregnant and postpartum women who were attending the regional hospital center of the Sous Massa region from April to December 2022. Statistical analysis was performed using Jamovi Software. The logistic regression analysis was used to determine the significance of the association between the outcome and independent variables.Results: The research enrolled 420 pregnant and postpartum women. During the current pregnancy, 24.8% of the women used self-medication. The leading common causes/symptoms that necessitate self-medication among pregnant and postpartum women were Anemia (84.8%), epigastralgia (16.8%), vomiting, pyrosis (15.2%), and urinary and vaginal infections The therapeutic families concerned with self-medication practice were Analgesics (41.4%), Antacids (20.3%), antimicrobials (13.5%), and Vitamin supplements (9%). According to the findings, the most frequent sources of information were pharmacists (45.6%), followed by physicians (44.3%). The primary reasons given by respondents for self-medication were the need for rapid release (51.7%), previous treatments with the same drugs (31.7%), and 20% reported difficulty of access to healthcare professionals. Out of 95.9% of the participants reported that they knew the dangers of self-medication and 96% of them were informed and received information about the dangers and contraindications of self-medication during pregnancy. This was significantly statistically associated with self-medication respectively with p-value = 0.031 and p-value = 0.005.Conclusion: The findings of the present study provide an initial awareness of the state of self-medication among pregnant and postpartum women attending the regional hospital centers. It is recommended that healthcare professionals increase their interventions to improve the consciousness of pregnant women; this might require implementing suitable strategies to regulate the commercialization, delivery, and use of conventional medications.