Because the rates of cesarean section (CS) are increasing worldwide, it is becoming increasingly important to understand the long-term effects that mode of delivery may have on child development. To investigate the association between obstetric mode of delivery and autism spectrum disorder (ASD). Perinatal factors and ASD diagnoses based on the International Classification of Diseases, Ninth Revision (ICD-9),and the International Statistical Classification of Diseases, 10th Revision (ICD-10),were identified from the Swedish Medical Birth Register and the Swedish National Patient Register. We conducted stratified Cox proportional hazards regression analysis to examine the effect of mode of delivery on ASD. We then used conditional logistic regression to perform a sibling design study, which consisted of sibling pairs discordant on ASD status. Analyses were adjusted for year of birth (ie, partially adjusted) and then fully adjusted for various perinatal and sociodemographic factors. The population-based cohort study consisted of all singleton live births in Sweden from January 1, 1982, through December 31, 2010. Children were followed up until first diagnosis of ASD, death, migration, or December 31, 2011 (end of study period), whichever came first. The full cohort consisted of 2,697,315 children and 28,290 cases of ASD. Sibling control analysis consisted of 13,411 sibling pairs. Obstetric mode of delivery defined as unassisted vaginal delivery (VD), assisted VD, elective CS, and emergency CS (defined by before or after onset of labor). The ASD status as defined using codes from the ICD-9 (code 299) and ICD-10 (code F84). In adjusted Cox proportional hazards regression analysis, elective CS (hazard ratio, 1.21; 95% CI, 1.15-1.27) and emergency CS (hazard ratio, 1.15; 95% CI, 1.10-1.20) were associated with ASD when compared with unassisted VD. In the sibling control analysis, elective CS was not associated with ASD in partially (odds ratio [OR], 0.97; 95% CI, 0.85-1.11) or fully adjusted (OR, 0.89; 95% CI, 0.76-1.04) models. Emergency CS was significantly associated with ASD in partially adjusted analysis (OR, 1.20; 95% CI, 1.06-1.36), but this effect disappeared in the fully adjusted model (OR, 0.97; 95% CI, 0.85-1.11). This study confirms previous findings that children born by CS are approximately 20% more likely to be diagnosed as having ASD. However, the association did not persist when using sibling controls, implying that this association is due to familial confounding by genetic and/or environmental factors.