Abstract Background The rate of autism spectrum disorder (ASD) has been rising worldwide, and therefore it is important to identify potential causes of ASD to facilitate early prevention. This study examined the role of breastfeeding and the association between caesarean delivery (CD) and children’s autism spectrum disorder. Methods The data were from the Ma’anshan birth cohort (MABC) in China, that was set up between May 2013 and September 2014. Women within 14 gestational weeks were recruited. The delivery mode was extracted from medical notes and infant feeding was obtained from questionnaire surveys. Autism-like behaviour was assessed using the Checklist for Autism in Toddlers (CHAT-23) when children were 18 months old, and 3 years of age. At 5 years of age, autism-like behaviour was assessed using the Clancy Autism Behavior Scale behavior. Structural equation models tested the mediation effects of breastfeeding between CD and children’s autism spectrum disorder. Results In all, 1520 (48.89%) women gave birth via CD, and 406 (13.86%) children were identified with autism-like behaviours at 18 months. Compared with women giving birth via vaginal delivery, those giving birth via CD were more likely to experience a higher proportion of delayed initiation of breastfeeding (p