ImportanceEosinophilic esophagitis (EoE), a chronic disease with significant patient and health care burden, has increased rapidly in incidence across many countries. Elucidating risk factors for disease development is a priority for health care practitioners and patients.ObjectiveTo evaluate the association of maternal and infant use of antibiotics and acid suppressants with the development of EoE.Design, Setting, and ParticipantsThis was a population-based, case-control study of pediatric EoE (1996-2019) in Denmark using pathology, prescription, birth, inpatient, and outpatient health registry data and with complete ascertainment of all EoE cases among Danish residents born between 1997 and 2018. Study data were analyzed from September 2020 to August 2023.ExposuresMaternal and infant use of antibiotics and acid suppressants, examining medication class, timing, and frequency of use.Main Outcome and MeasureDevelopment of EoE.ResultsIncluded in the study was a total of 392 cases and 3637 sex- and year of birth–matched controls with a median (IQR) age of 11.0 (6.0-15.0) years, 2772 male individuals (68.8%), and 1257 female individuals (31.2%). Compared with children with no antibiotic prescriptions filled during infancy, those with any use of an antibiotic had an associated 40% increase in risk of EoE (adjusted odds ratio [aOR], 1.4; 95% CI, 1.1-1.7). Those with 3 or more prescriptions had an associated 80% increase in risk of EoE (aOR, 1.8; 95% CI, 1.3-2.5). Frequency of maternal antibiotic use was associated with an increased risk (1 prescription: aOR, 1.4; 95% CI, 1.0-1.8; 3≤ prescriptions: aOR, 2.1; 95% CI, 1.4-3.2). Risk was highest for use in the third trimester and in the first 6 months from birth. Any acid suppressant use in infancy was associated with increased risk of EoE (aOR, 15.9; 95% CI, 9.1-27.7). Restriction of cases to those diagnosed at 5 years or older yielded similar results (aOR, 11.6; 95% CI, 5.5-24.8). For maternal use, 3 or more prescriptions were associated with an increased risk of EoE for her offspring (aOR, 5.1; 95% CI, 1.8-14.8).Conclusions and RelevanceMaternal and infant antibiotic use were associated with increased risk of developing EoE, in a dose-response manner, and the magnitude of association was highest for exposure near the time of delivery. Increased risk was also observed with maternal and infant acid suppressant use. Exposure during early life, a period of known developmental susceptibility, may confer the greatest risk and opportunity for risk mitigation.