The aim of this study was to evaluate the association between prenatal and neonatal period exposures and the risk of childhood and adolescent nasopharyngeal carcinoma (NPC). From January 2009 to January 2016, a total of 46 patients with childhood and adolescent NPC (i.e., less than 18 years of age) who were treated at Sun Yat-sen University Cancer Center were screened as cases, and a total of 45 cancer-free patients who were treated at Sun Yat-sen University Zhongshan Ophthalmic Center were selected as controls. The association between maternal exposures during pregnancy and obstetric variables and the risk of childhood and adolescent NPC was evaluated using logistic regression analysis. Univariate analysis revealed that compared to children and adolescents without a family history of cancer, those with a family history of cancer had a significantly higher risk of childhood and adolescent NPC [odds ratios (OR) = 3.15, 95% confidence interval (CI) = 1.02–9.75, P = 0.046], and the maternal use of folic acid and/or multivitamins during pregnancy was associated with a reduced risk of childhood and adolescent NPC in the offspring (OR = 0.07, 95% CI = 0.02–0.25, P < 0.001). After multivariate analysis, only the maternal use of folic acid and/or multivitamins during pregnancy remained statistically significant. These findings suggest that maternal consumption of folic acid and/or multivitamins during pregnancy is associated with a decreased risk of childhood and adolescent NPC in the offspring.