Results
PONV, agitation, postoperative nausea and vomiting, Postoperative pain
In this study, we enrolled 70 patients all together who were assessed for eligibility and randomly allocated to two groups: magnesium group (M Group, n = 35) and the control group (C Group, n = 35) (Fig. 
We enrolled 70 patients all together and 70 patients were assessed for eligibility, they were randomly alloeated to two groups: magnesium group (M Group. n = 35) and the control group (C Group. n = 35). none of them were be dropped outNone of the patients were dropped out for various reasons. Demographic characteristics are presented in Table 
Demographic characteristicsCategorical variables were represented as mean ± standard deviation, numberof patients (%) or median(range). PONV, postoperative nausea and vomiting. ET-sevo, the mean end-tidal sevoflurane concentration. 
Perioperative measurementsCategorical variables were represented as mean ± standard deviation, numberof patients (%) or median(range). PONV, postoperative nausea and vomiting. ET-sevo, the mean end-tidal sevoflurane concentration. We assessed EA at various time points after admission to PACU and found that intraoperative infusion of magnesium sulfate significantly reduced the incidence of EA at T0 (odds ratio 0.26, 95% confidence interval 0.09–0.71, P = 0.009), T1 and T2(P = 0.039,P = 0.035),(Table 
Postoperative emergency agitation at various pointsT095%CI4(3,5)3.6,4.25(4,5)4.5,4.9T195%CI4(3,4)3.7,4.14(4,5)4.1,4.5T295%CI4(4,4)3.8,4.14(4,5)4.0,4.4T395%CI4(4,4)3.8,4.14(4,4)3.8,4.2T495%CI4(4,4)3.8,4.04(4,4)3.9,4.0Categorical variables were represented as mean ± standard deviation, number of patients(%), median(range) and 95% confidence interval. EA, emergency agitation. SAS, sedation and agitation scale. CI, confidence interval. 
Postoperative pain profile within 30 minCategorical variables were represented as mean ± standard deviation, number of patients (%), median(range) and 95% confidence interval. VAS, visual analogue scale. 