Background: The potential influence of maternal magnesium levels during gestation on offspring's blood pressure remains largely unexplored. Objective: We aim to investigate the association of maternal magnesium concentrations during early pregnancy and child’s blood pressure at four years of age. Methods: Using data from the Shanghai Birth Cohort, this study analyzed the data from 1129 mother-child pairs. Results: Maternal blood magnesium concentrations were inversely associated with blood pressure of offspring at 4 years of age. Each 1mmol/L increment in maternal magnesium was correlation with 3.03 mmHg (95% CI -4.77 to -1.29, P =0.001) decrease of systolic blood pressure and 1.72 mmHg (95% CI -3.22 to -0.23, P =0.024) decrease of diastolic blood pressure in children after adjusting for covariates. Moreover, maternal magnesium concentrations were associated with incident high blood pressure (OR = 0.40, 95% CI, 0.17 to 0.95, P =0.037) of offspring. Exploratory maternal pre-pregnancy body mass index stratified analyses found that the negative regression coefficient (β) of maternal magnesium and child blood pressure was greater in the overweight/obese group than in normal weight group or underweight group ( P for systolic blood pressure difference 0.014, P for diastolic blood pressure difference 0.019). Conclusions: Our data suggest higher maternal magnesium concentrations are associated with lower blood pressure levels and reduced risk of high blood pressure in children. Our findings highlight the importance of maternal Mg levels during pregnancy, especially for the mothers who are overweight or obese.