Introduction

Vitamin D is recognized as a crucial nutrient, that plays a pivotal role in various physiological processes such as cell function, bone mineralization, calcium homeostasis, and muscle performance1,2,3. However, epidemiologic studies have demonstrated that pregnant women are at a higher risk of vitamin D deficiency4,5,6. A systematic review estimates that the prevalence of vitamin D deficiency, defined as serum 25(OH)D < 20 ng/ mL (50 nmol/L), ranges from 64 to 83% depending on geographic region7.

In addition to the role of vitamin D in maintaining calcium homeostasis and bone metabolism, a deficiency in vitamin D during pregnancy can result in various complications such as preeclampsia, gestational diabetes mellitus (GDM), and preterm delivery8,9,10,11, and an increased risk of cesarean Sect. 12,13,14,15,16,17. The mechanisms behind the association between 25(OH)D and increased cesarean section risk are complex and not fully elucidated. Vitamin D is important for smooth muscle performance and myometrium contractility which plays a critical role in the initiation of labor18. The deficiency of vitamin D can also lead to endothelial dysfunction, impaired vascular health19, and glucose homeostasis abnormalities20,21, which can predispose to developing GDM22. The levels of vitamin D can also affect preterm delivery through inflammation and immune system modulation. Additionally, vitamin D deficiency can increase the risk of infection, which is known to be a major cause of preterm delivery10. Maternal complications such as preeclampsia, GDM, and preterm delivery can indirectly lead to cesarean section due to fetal distress23,24,25. Studies suggest that 25(OH)D levels during delivery may influence the rate of cesarean and operative deliveries by increasing birth weight26, independently of gestational age27. Birth weight is linked to GDM, which can increase the risk of cesarean section due to cephalopelvic disproportion (CPD) and prolonged labor (dystocia)28.

Several studies have examined the relationship between 25(OH)D concentrations and mode of delivery, but their findings have been inconsistent and inconclusive12,13,14,15,16,17,29,30,31,32. Some studies have suggested that mothers with vitamin D deficiency are at an increased risk of cesarean Sect.12,13,14,15,16,17, while others have found no link between serum levels of 25(OH) D and type of delivery29,30,31,32. This discrepancy may be due to various confounding factors that were not accounted for in most of these studies.

To better understand and simplify the complex association between 25(OH)D concentration at delivery and mode of delivery, we utilized data from a stratified randomized controlled field trial of vitamin D supplementation. We employed a Bayesian Network (BN), which is a popular data mining algorithm to predict the likelihood of cesarean section in mothers with vitamin D deficiency. This innovative approach allowed us to elucidate the relationships among the variables in our analysis.

Methods

Study design and participants

This study presents a secondary analysis of data collected from the Khuzestan Vitamin D Deficiency Screening Program in Pregnancy, which was a stratified randomized controlled field trial. The study protocol and procedures have been previously published33,34.

This study was conducted in two phases. The first phase involved a population-based cross-sectional study that recruited 1,600 and 900 first-trimester pregnant women from health centers in Masjed-Soleyman and Shushtar, respectively. The sampling method used was stratified multistage cluster sampling with probability proportional to size (PPS). Inclusion criteria include age range 18–40 years, gestational age < 14 weeks, singleton pregnancy, not consuming multivitamins containing 400 IU/d of D3, and no previous history of chronic diseases. Participants consuming multivitamins containing more than 400 international units (IU) per day of vitamin D3 and anticonvulsants and those with a history of chronic diseases like diabetes, hypertension, renal dysfunction, liver diseases, and complicated medical or obstetrical history were excluded from the study. The study data was collected from 1800 first-trimester pregnant women referred to health centers in Masjed-Soleyman (intervention) and Shushtar (control), from whom fasting blood samples were collected. Serum samples of participants from Shushtar were stored and kept frozen at -80° C until further assays at the end of the study, according to the original study protocol. The vitamin D status of participants from Masjed-Soleyman was measured immediately, and those found to have vitamin D deficiency were randomly assigned to a treatment regimen consisting of vitamin D3 supplementation until delivery. During the second phase of the study, based on 25(OH)D levels, mothers were divided into severe deficient (< 10 ng/ml), moderate deficient (10-20 ng/ml), and normal status (> 20 ng/ml) (6). A total of 800 pregnant women with vitamin D deficiency (defined as serum concentrations of 25(OH)D < 20 ng/ml) from Masjed-Soleyman were included in the intervention group and received vitamin D supplementation according to the assigned protocol. Participants were randomized into groups of four using a computer-generated list. The physicians involved in the study were not informed about which group each woman was placed in, but the midwife who was not involved in any phase of the study knew. It was not possible to hide the treatment allocation from healthcare workers, but those who assessed pregnancy outcomes were unaware of the treatment allocation. The remaining women with vitamin D deficiency were referred to specialists for further treatment. Participants from Shushtar served as the control group and did not receive any vitamin D supplementation. Women with severe and moderate vitamin D deficiency from Masjed-Soleyman were randomly allocated to one of four treatment modalities: A1 (treatment with 50,000 IU of oral vitamin D3 weekly for a total duration of 12 weeks), A2 (treatment with 50,000 IU of oral vitamin D3 weekly for a total duration of 12 weeks and then on a monthly maintenance dose of 50,000 IU vitamin D3 until delivery), A3 (intramuscular administration of 300,000 IU vitD3; 2 doses for 6 weeks), and A4 (Intramuscular administration of 300,000 IU vitamin D3; 2 doses for 6 weeks and then on a monthly maintenance dose of 50,000 IU vitamin D3 until delivery). Women with moderate vitamin D deficiency were assigned to one of four study groups: B1 (treatment with 50,000 IU oral vitamin D3 weekly for a total duration of 6 weeks), B2 (treatment with 50,000 IU oral vitamin D3 weekly for a total duration of 6 weeks and then on a monthly maintenance dose of 50,000 IU vitamin D3 until delivery), B3 (a single dose of intramuscular administration of 300,000 IU vitamin D3), and B4 (a single dose of Intramuscular administration of 300,000 IU vitamin D3 and then on a monthly maintenance dose of 50,000 IU vitamin D3 until delivery). Serum levels of 25 (OH)D of all participants (from both cities) were measured at delivery. All participants (intervention and control groups) received routine prenatal care and followed till delivery.

For this analysis, elective and repeat cesarean section cases, those without reliable data about the type of cesarean section (n = 143), IUFD (n = 2), and incomplete data on predictors (n = 6) were excluded. As a result, a total of 1488 pregnant women were included in the analysis (Fig. 1).

Figure 1
figure 1

The study flow-diagram.

Clinical and laboratory measurements

Clinical and anthropometric parameters were measured for all participants (by trained examiners at baseline and delivery. All participants were interviewed for sociodemographics, their history of pregnancies, and medical, obstetrics, and family histories using pretested questionnaires. Adverse pregnancy outcomes were defined based on the standard diagnostic criteria. At the time of data collection, women were asked about their history of preeclampsia, based on a self-reporting questionnaire at each follow-up, details of which have been previously published33. In brief, weight was measured with minimum clothing to the nearest 100 g. Height was measured with a tape measure in a standing position with a normal posture of the shoulders. Body mass index was calculated by dividing weight (kg) by height (m2). Systolic and diastolic blood pressures (SBP and DBP) were measured twice in a sitting position with a standard mercury sphygmomanometer after a 15-min rest, and the mean of the two measurements was considered as SBP or DBP. Serum concentrations of 25(OH)D were assayed for all participants (both Masjed-Soleyman and Shushtar) at baseline and at delivery using the ELISA method and a kit of Immunodiagnostics Systems by AutoAnalyzer (Human Corporation, Germany). The interassay and intraassay coefficients of variation were 3.891% and 3.37%, respectively (sensitivity of 5 nmol/L). The instruments were calibrated as per the manufacturer's instructions, and validation studies were performed before the test. Samples were analyzed by a single technician using the same equipment throughout the study in a reference laboratory and were measured according to standard operating procedures.

Term definition

Preeclampsia was defined as having systolic blood pressure > 140 mmHg or diastolic blood pressure 90 mmHg and 24-h proteinuria 0.3 g, initiated at > 20 weeks of gestation35, GDM as glucose intolerance first detected during pregnancy, based on the criteria of the International Association of Diabetes and Pregnancy Study Groups36, and preterm delivery as birth at < 37 weeks of gestation37. Women with concentrations of 25(OH)D between 10 and 20 ng/mL diagnosed as moderate vitamin D deficiency and those with concentrations < 10 ng/mL considered as severe vitamin D deficiency.

Study outcomes

The study outcome was the mode of delivery which was classified as either vaginal or emergency cesarean section. According to the ICD-10 classification system, an emergency cesarean section included all cases where such delivery was undertaken after the onset of labor. Dystocia refers to prolonged or slowly progressing labor and is defined as abnormal or difficult labor and may be associated with factors of the passenger (fetus), the passage (maternal pelvis like CPD), the forces (powers), or a combination of these factors. CPD refers to the inability of the fetus to pass through the pelvis.

Statistical analysis

The available data appears to be appropriate for achieving research goals; however, some methodological considerations are necessary to address the complexity of the design. To simplify the relationships between variables, we used the BN method, one of the most well-known algorithms in data mining.

The statistical method employed to evaluate the generalizability of our findings was a tenfold cross-validation technique. The dataset was randomly divided into ten equal parts, with nine parts being utilized for model training in each iteration. The remaining part was used for evaluating the predicted values. To obtain a comprehensive performance evaluation, we calculated the sensitivity, specificity, and accuracy metrics by averaging these values across all ten iterations.

We employed the Hill-Climbing (HC) algorithm to achieve the best Directed Acyclic Graph (DAG) corresponding to our data. HC is a score-based structure learning algorithm that progressively restricts the neighborhood. Compared with constraint-based algorithms, score-based algorithms result in entirely directed DAG, which is their primary advantage38.

To fit the parameters of BN corresponding to DAG achieved in structure learning, we used the Bayesian estimation39. We predicted the type of delivery for individuals in the test set and compared it with the actual observations. To evaluate the validity of predictions, we used the Receiver Operating Characteristic (ROC) curve and the Area Under Curve (AUC). The conditional probability tables for the primary exposure and outcome variables were derived from the BN, and the chi-squared statistics were used to test the significance of relations.

Finally, we fitted several logistic regressions adjusted for potential confounders as the alternative approach for modeling the data. We compared the prediction power of these models with the suggested BN using the AUC of these models in the test datasets.

The statistical analysis, data preparation, and graphical representation were conducted using the R statistical software environment. We used the "bnlearn" package to fit the BN model40. The type one error for statistical inferences was defined at 0.05.

Ethical approval and consent to participate

This research project was approved by the Medical Ethics Committee of the Research Institute for Endocrine Sciences (IR.SBMU.ENDOCRINE.REC.1400.042). All methods were performed in accordance with the relevant guidelines and regulations. All study participants provided written informed consent.

Results

Table 1 summarized the characteristics of the study participants in the intervention and control cities. There was no significant difference in the education level, job status, number of children, and age at current pregnancy between women from the two cities. However, the other characteristics, such as the prevalence of pregnancy complications like GDM (3.8% in the intervention and 6.2% in the control city with P-value = 0.03), preeclampsia (8.9% in the intervention and 17% in the control city with P-value < 0.001), low birth weight (5.8% in the intervention and 11% in control city with P-value < 0.001), and preterm (9% in the intervention and 15% in control city with P-value < 0.001) were significantly higher in the control city than in the intervention city. The prevalence of moderate and severe vitamin D deficiency at baseline was 46% and 38%, respectively, in the control city, while in the intervention city, these values were 44% and 45%. Consequently, there was a significantly higher prevalence of severe vitamin D deficiency in the intervention city (P-value = 0.004). Severe vitamin D deficiency prevalence at delivery was reported at 1.5% and 45% in the intervention and control cities (P-value < 0.001), respectively. The prevalence of cesarean section in the case and control groups were 29% and 37%, respectively (P-value < 0.001).

Table 1 Characteristics of females who participated in the study and their husbands.

Figure 2 presents the DAG of the study and shows the relationships between the socioeconomic characteristics of participants. The education level of participants was the primary variable that differentiates their living conditions. It directly affects the job status, husband’s education, and age of the first pregnancy of women. The age of the first pregnancy and the number of children determined the age of mothers during the current pregnancy. Among these variables, the residence type (living in a house or apartment) as a determinant of economic level and exposure to the sun was identified as a critical variable affecting the vitamin D status of females.

Figure 2
figure 2

Directed acyclic graph (DAG) generated by the HC structure learning algorithm for the study.

Vitamin D level at delivery was a function of vitamin D level at the start of the study (baseline) and the city (intervention city vs control city) where females lived. This conditional relationship adjusts the results for baseline status and receiving interventions. The vitamin D level at delivery was related to the mode of delivery, preeclampsia, and gestational age. Finally, the gestational age and GDM determined the birth weight of newborns.

Conditional probabilities in BN revealed that knowledge about vitamin D level at delivery informed us about the pregnancy outcomes and type of delivery. The type of delivery was conditionally independent of vitamin D status at baseline, given the vitamin D status at the time of delivery. Therefore, in Fig. 3, we focused on the intervention and outcome variables and presented the conditional distribution tables of these variables. According to these tables, the probability of cesarean section increased by the level of vitamin D deficiency from 18.62% (95% CI: 16.74–20.5) at a normal level to 47.22% (95% CI: 44.81–49.63) at severe deficiency levels. The same pattern was observed in an increased risk of preeclampsia and preterm birth at severe and moderate levels of vitamin D deficiency compared with normal status. All the relationships were significant, with P-values < 0.001. The most frequent causes of cesarean section were prolonged labor 44.86 (95% CI: 42.46–47.26), malpresentation 29.35 (95% CI: 27.15–31.55), and CPD 11.78% (95% CI: 10.22–13.34).

Figure 3
figure 3

Conditional distribution tables for variables in the BN subset focused on exposure and outcomes.

Four different logistic models were fitted in Table 2. In the first model, one of the direct parents of the outcome (vitamin D at delivery) was added. In the second model, the second-order ancestors (vitamin D status at the beginning of the study and city) were added. In the third model, the third-order ancestor (residence type) was added, and finally, the female's education level and age at the current pregnancy were added as potential confounders. Based on our findings, there was a negative association between moderate and severe vitamin D deficiency at the time of delivery and the occurrence of NVD. The OR in model 1 implies to 60% and 69% reduction in the odds of NVD for moderate and severe deficiency, respectively. The adjusted ORs in other models were almost the same and showed nearly 71% and 77% reduction in the odds of NVD.

Table 2 Unadjusted and adjusted logistic regression models to estimate the odds ratio (OR) of cesarean section in participants of the study.

Model 1 had an AUC of 67% (95% CI: 62.2–71.7), with a sensitivity of 39.22%, specificity of 8.82%, and accuracy of 70.71%. These metrics suggest superior performance compared to the other models in Table 2. The ROC curves of all these models and the BN are presented in Fig. 4. The AUC of BN in the left-hand panel is almost similar to model 1, and the AUC is the same. The sensitivity and specificity of correct prediction for participants with cesarean section in our BN are 37.58% and 87.87%, respectively, leading to 62.72% accuracy.

Figure 4
figure 4

Receiver operating characteristic (ROC) curve comparing BN and ordinary logistic regression models.

Discussion

In the present study, we explored various influential factors related to the association between serum concentrations of 25(OH)D at delivery and mode of delivery using a BN approach. This method has several advantages, including the ability to manage missing data and collinear data effectively41,42 as well as the capacity to handle complex problems with uncertainties and associations18,43. Based on our investigation, we report a significant association between vitamin D levels and the mode of delivery. Specifically, our findings indicate that women with moderate and severe vitamin D deficiency had increased odds of undergoing cesarean section compared to those with normal levels of this essential nutrient. Furthermore, our analysis revealed an indirect effect of vitamin D status on pregnancy outcomes, as serum concentrations of 25(OH)D at delivery were positively correlated with the incidence of preeclampsia and gestational age. Importantly, we identified two critical factors that impact 25(OH)D values at delivery: baseline vitamin D concentrations and receiving vitamin D supplementation during pregnancy. Additionally, we found that the type of residence (house vs apartment) was associated with differences in vitamin D levels. Taken together, our results demonstrate the importance of monitoring and maintaining optimal vitamin D levels during pregnancy for optimal maternal and fetal health outcomes.

Previous studies have evaluated the relationship between maternal vitamin D status and mode of delivery using various statistical methods, yielding inconsistent findings12,13,14,15,16,17,29,30,31,32. Many studies have utilized regression models with and/or without adjustment for potential confounding variables, documenting an increased incidence of cesarean section in mothers with vitamin D deficiency12,13,14,15,16,17. For example, after controlling for factors such as race, age, education level, insurance status, and alcohol use, a cross-sectional study on 253 American women revealed that participants with 25(OH)D levels less than 37.5 nmol/liter had almost four times the odds of cesarean delivery compared to those with levels of 25(OH)D 37.5 nmol/liter or greater12. Another cross-sectional study on 200 Indian pregnant women with singleton pregnancies showed a higher prevalence of hypovitaminosis D among mothers who underwent cesarean delivery compared to those who delivered vaginally (92% of women with vitamin D deficiency and 6% with insufficiency versus 85.6% with deficiency and 10.8% with insufficiency)14. A case–control study of 60 Danish women demonstrated a significant association between serum 25(OH)D levels and an increased risk of emergency cesarean section due to dystocia, highlighting the importance of vitamin D in the preparation of the uterus muscles and smooth muscle contractility during normal vaginal delivery44. Similarly, another study on 2,251 low-income pregnancies demonstrated that after adjusting for energy intake, other nutrients, and other potentially confounding variables, women with vitamin D deficiency had a two-fold increased risk of cesarean delivery due to prolonged labor compared to those with sufficient serum concentrations45. Additionally, a cross-sectional study of Iranian women with singleton pregnancies aged 15–45 years suggested that vitamin D deficiency was associated with a higher rate of cesarean delivery and other adverse maternal and neonatal outcomes13. Data from a multi-ethnic Asian cohort study of 940 women showed that Chinese and Indian women with 25 (OH) D inadequacy had higher odds ratios of emergency cesarean Sect. (1.9 and 2.41-fold, respectively) than those with sufficient values. Although this study reported an inverse association between maternal 25 (OH)D concentrations and fasting plasma glucose, there was no association between vitamin D insufficiency and risk of GDM in the overall cohort or within any ethnic group16. A prospective study of 995 singleton pregnancies found that after adjusting for maternal age, BMI, racial origin, smoking, method of conception and season of blood testing, first-trimester maternal serum levels of 25(OH)D were similar between women who delivered vaginally and those required elective or emergency caesarean delivery29. However, it is important to note that although levels of 25(OH)D in the first trimester were similar among all participants, those with declining vitamin levels during pregnancy may have a higher risk of cesarean delivery than those who maintain their vitamin D levels more effectively. Data from a prospective cohort study of 1153 low-income and minority gravidae revealed that after adjustment for age, parity, ethnicity, smoking, BMI, gestation, and season at entry, the cesarean delivery risk was significantly increased for women with vitamin D deficiency, but not for those with vitamin D insufficiency. The authors found that vitamin D deficiency was associated with a two-fold increased risk of cesarean delivery due to prolonged labor17. However, some investigations report no significant association between 25(OH)D and mode of delivery29,30,31,32. For example, a study on 461 Nigerian pregnant women found no significant differences between study groups based on 25(OH)D levels (normal, insufficient, and deficient) regarding the rate of cesarean delivery or other pregnancy complications such as preeclampsia, GDM, and preterm delivery30. Similarly, a cross-sectional study of 154 Turkish pregnant women showed no significant difference in the rate of cesarean delivery between women with serum vitamin D levels < 15 ng/ml compared to those with values > 15 ng/ml31. Conflicting results among studies could be attributed to limitations such as small sample size, lack of adjustment for potential confounders, and measurement of vitamin D in the first trimester.

The mechanisms underlying the association between 25(OH)D deficiency and an increased risk of cesarean section are complex and require further investigation. One potential explanation for this association is the presence of vitamin D receptors in skeletal muscle46, which can lead to proximal muscle weakness47. and suboptimal muscle function and strength in individuals with vitamin D deficiency3,47. Additionally, calcium levels, which are regulated by 25(OH)D, play a critical role in smooth muscle performance during labor initiation18. Adequate levels of serum calcium are necessary for initiating labor, and vitamin D deficiency may negatively impact both skeletal muscle and smooth muscle strength, leading to specific etiologies of cesarean delivery such as CPD or failure to progress12. Vitamin D may affect myometrial contractility via two pathways: involving the intracellular vitamin D receptor and changes in the calcium metabolism44. Invitro studies have demonstrated that vitamin D regulates contractile proteins in myometrial cells48. Our analysis predicted that 44.86% of pregnant women will undergo cesarean section due to prolonged labor. Thus, maternal vitamin D deficiency at delivery might increase the probability of cesarean section by reducing the ability to push and more complicated and extended labor.

Moreover, maternal vitamin D deficiency during pregnancy and at delivery has been implicated in the pathogenesis of some maternal medical conditions, including preeclampsia, GDM, and preterm delivery, which can be associated with a higher risk of cesarean Sect.8,9. A recent systematic review and meta-analysis reported a strong link between maternal vitamin D deficiency and severe preeclampsia, and vitamin D supplementation may be beneficial in preventing this pregnancy complication49. Vitamin D deficiency is also associated with many risk factors for endothelial dysfunction and vascular health impairment19. On the other hand, adequate vitamin D intake can maintain calcium homeostasis, which is inversely correlated with blood pressure50 and may directly suppress the proliferation of vascular smooth muscle cells. Vitamin D may also play a critical role in blood pressure control by regulating the renin-angiotensin system51. Additionally, vitamin D can modulate the synthesis of adipokines related to endothelial and vascular health52. Vitamin D concentration can affect glucose homeostasis via various mechanisms, such as improving the insulin sensitivity of target cells (liver, skeletal muscle and adipose tissue), improving and protecting β-cell function, and reducing insulin resistant through immunoregulatory and anti-inflammatory effects20,21. Women with vitamin D deficiency might be at risk for GDM22. Moreover, vitamin D can influence the pathophysiology of preterm delivery through inflammation and immunomodulation processes; pregnant women with vitamin D deficiency might be susceptible to infection, which is an important predisposing factor for preterm delivery10. A meta-analysis of 10 studies including 10,098 participants showed that maternal serum concentrations of 25(OH)D levels less than 20 ng/mL were significantly associated with an increased risk of preterm delivery53. Our study based on the structure of BN revealed that moderate and severe vitamin D deficiencies at delivery significantly increase the probability of pregnancy complications like cesarean section, preeclampsia, and preterm delivery, but not GDM. Nevertheless, the absence of a significant relationship between 25(OH)D status and GDM in our study could be due to the conditionally dependent approach of the model. Therefore, no significant relationship between vitamin D concentrations and GDM given the city does not necessarily imply that the relationship does not exist overall. Our findings indicated that fetal distress contributed to approximately 4.3% of cesarean section cases. Fetal distress can partly reflect maternal medical conditions, such as preeclampsia, gestational diabetes, and preterm delivery, which are indirectly associated with cesarean Sect.23,24,25. Additionally, previous studies have demonstrated that GDM can increase fetal weight and macrosomia, leading to an elevated risk of elective cesarean section and emergency cesarean due to CPD and dystocia28.

We utilized logistic regression models, the most commonly used statistical approach in medical research, to estimate the OR of cesarean section in women with maternal vitamin D deficiency after adjusting confounders. Our results from logistic regression provided similar to those obtained from the BN. In particular, our unadjusted logistic regression model (model 1) showed higher OR for cesarean section in pregnant women with moderate and severe vitamin D deficiency compared with those with normal vitamin D levels. This finding remained significant even after adjusting for other factors such as vitamin D at baseline and city (intervention with vitamin D supplementation) (model 2), vitamin D at baseline, city, and residence type (model 3), and vitamin D at baseline, city, residence type, education, and age at current pregnancy (model 4). Additionally, we found that the AUC of all these models was comparable to that of the BN approach.

To the best of our knowledge, this is the first population-based study globally to illustrate the relationship between the association between 25(OH)D concentrations at delivery and mode of delivery using both BN and logistic regression models. Our study has several strengths, including its population-based design, measurement of 25(OH)D at both baseline and delivery, and the use of appropriate statistical methods for data analysis. These methods have been shown to be superior to traditional regression analysis in various fields of epidemiological studies18,41,42,43.

However, several limitations should be kept in mind when interpreting our findings. Firstly, we could not apply the liquid chromatography technique as the gold standard method for measuring the circulating levels of 25(OH)D, due to inaccessibility. Nevertheless, the ELISA technique is reliable when performed by expert staff54. Secondly, there were variations in vitamin D supplementation intake among the study population. However, our results suggest that vitamin D was the critical determinant of the mode of delivery, regardless of vitamin D at baseline and intervention. Additionally, we had no data on UVB exposure during pregnancy trimesters, calcium intake, sartorial habits, and skin types. Thirdly, our study population was limited to two cities mainly composed of the Persian ethnic group, thus generalizing our results to other ethnicities should be approached with caution. Fourthly, we could not measure myometrial dysfunction by contraction frequency or Montevideo units due to a lack of data. Finally, since the cesarean rate is very high in many countries, including Iran, our findings may not be generalizable to populations with a lower cesarean rate.

In conclusion, our study highlights the adverse effects of maternal vitamin D deficiency on mode of delivery, both directly and indirectly, through maternal complications such as preeclampsia and preterm delivery, leading to a higher probability of cesarean section. Therefore, screening all pregnant women for serum concentrations of 25(OH)D can help identify mothers at risk of adverse pregnancy outcomes.