An association between maternal smoking in pregnancy and autism may be biologically plausible, but the evidence to date is inconsistent. We aimed to investigate the causal relationship between maternal smoking during pregnancy and offspring autism using conventional analysis and causal inference methods. In the Avon Longitudinal Study of Parents and Children we investigated the association of maternal smoking during pregnancy (exposure) with offspring autism spectrum disorder (ASD) or possible ASD diagnosis (n = 11,946) and high scores on four autism-related traits (outcomes) (n = 7402-9152). Maternal smoking was self-reported and also measured using an epigenetic score (n = 866-964). Partner's smoking was used as a negative control for intrauterine exposure (n = 6616-10,995). Mendelian randomisation (n = 1002-2037) was carried out using a genetic variant at the CHRNA3 locus in maternal DNA as a proxy for heaviness of smoking. In observational analysis, we observed an association between smoking during pregnancy and impairments in social communication [OR = 1.56, 95% CI = 1.29, 1.87] and repetitive behaviours, but multivariable adjustment suggested evidence for confounding. There was weaker evidence of such association for the other traits or a diagnosis of autism. The magnitude of association for partner's smoking with impairments in social communication was similar [OR = 1.56, 95% CI = 1.30, 1.87] suggesting potential for shared confounding. There was weak evidence for an association of the epigenetic score or genetic variation at CHRNA3 with ASD or any of the autism-related traits. In conclusion, using several analytic methods, we did not find enough evidence to support a causal association between maternal smoking during pregnancy and offspring autism or related traits.