--- - |2+ Otitis media infections and antibiotic treatment have been linked to the risk of developing autism spectrum disorder. Broad‐spectrum antibiotics may alter the composition of the gut flora microbiota, which is hypothesized to be involved in the regulation of the immune system. This study examines the interplay among otitis media, antibiotics, and the subsequent risk of developing autism. Based on the entire Danish population, 780,547 children were followed from birth (January 1, 1997 to December 31, 2008) until December 31, 2012. We calculated adjusted hazard ratios and absolute risks of autism with 95% confidence intervals (CIs) related to previous otitis media diagnoses and antibiotic prescriptions redeemed at Danish pharmacies. The absolute risk of autism before age 10 was increased among children with otitis media (1.2% for females and 3.3% for males) and in children who had redeemed an antibiotic prescription (0.6% and 2.7% for females and males) compared to children without a history of otitis media and antibiotics usage (0.4% for females and 1.9% for males). Similarly, we found an increased hazard ratio of autism associated with otitis media (1.83 95% CI 1.71–1.95) and antibiotics usage (1.29 95% CI 1.17–1.43). A history of both otitis media and antibiotic treatment did not further increase the risk of autism. Although the risk of autism was associated with otitis media and treatment with antibiotics, we found little evidence of a synergistic effect between otitis media infections and treatment with antibiotics. Lay Summary: We investigated whether otitis media ear infections and antibiotic treatment were associated with autism spectrum disorder. Autism was more common in children who had had an otitis media infection or who had been treated with antibiotics. Given the observational nature of our data, our study cannot be used to conclude that otitis media or use of antibiotics cause autism, as our findings may be subject to unobserved confounding. - Autism Research, EarlyView.