Objective: To investigate whether it is better to have surgery before pregnancy for pregnant women with congenital heart disease (CHD). Methods: Patients with CHD in Beijing Anzhen Hospital from 2010 to 2019 were collected and divided into surgical and non-surgical group, and the differences of events between the two groups were compared. Results: A total of 999 patients with CHD (mean age, 28.7±4.3years) were collected, including 403 cases (40.0%) in the surgical group and 596 cases (60.0%) in the non-surgical group. The most common CHD was atrial septal defect(33.1%), followed by ventricular septal defect (26.9 %), patent ductus arteriosus (9.9 %), and Tetralogy of Fallot (6.9 %). There were significant statistical differences in region, education degree and gravidity (P<0.05), and the percentage of almost all events in the surgical group was higher. Pre-term delivery (17.1 vs. 9.9), low birth weight (11.6 vs. 6.5), heart failure (6.7 vs. 2.7), cesarean section (85.9 vs. 75.7), pulmonary arterial hypertension (36.2 vs. 13.6), Eisenmenger syndrome (9.7 vs. 0.2), and death (2.3 vs. 0.5) had statistically significant (P<0.05). A total of 16 (1.6%) patients died, 14 (87.5%) in the surgical group, more than 2 (12.5%) in the non-surgical group. Conclusions: The outcome of surgical group was better than that of non-surgical group, surgery before pregnancy can reduce maternal and infant risk.