Existing research suggests the impact of infertility on the risk of neurodevelopmental disorders in children, however, studies to date have failed to separate the impact of male and female infertility, often blurring the lines with proxies that encompass all forms of infertility. Moreover, while both health conditions co-occurring with infertility and genetic factors operating upstream have been suggested to influence the association between infertility and child outcomes, their roles and potential impact on observed associations remain unclear. The objectives of this study are to investigate the relationship between female infertility and autism in the child, differentiating it from the effects of male and the couple infertility; consider the role of various maternal and birth factors in the association; and examine the effects of shared familial confounders on the association. Danish population-based cohort study, including all singleton live births in Denmark 1998-2015, their parents and parents' siblings. The cohort was followed up until December 31, 2016. The exposure was a history of female infertility in the mother and the mother's sister. We examined four definitions of female infertility based on the ICD-10 codes derived from the Danish National Patient Register - any female infertility; specified female infertility; female exclusive infertility; and female or male infertility. The outcome was diagnosis of autism spectrum disorder (ASD) in the Danish Psychiatric Central Research Register or the national patient register. A multivariable Cox regression model was used to estimate the associations between female infertility and autism, accounting for child's sex, year of birth, maternal age, education level, chronic comorbidities, and pregnancy and birth complications. The effects of shared familial factors on the association were analyzed using exposure information from the child's maternal aunt. The cohort included 1,131,899 mother-child pairs, among which 18,374 children with ASD diagnosis. History of female infertility in the mother (all definitions) was significantly associated with autism in the child, with the association remaining robust after adjustment for covariates (HRadj=1.14 (95% CI, 1.03-1.26) for specified infertility). The diagnosis of infertility in a child's maternal aunt was also significantly linked to the child's autism risk, even after adjustment for maternal infertility (HRadj=1.10 (95% CI, 1.00-1.20). in This population-based birth cohort study, we found a slightly higher risk of autism in children born to mothers with a history of infertility, with the association remaining consistent across various definitions of female infertility and robust to adjustments for demographic, child, and maternal factors. The study suggests for the first time that shared familial factors, possibly both genetic and non-genetic, could be influencing both female infertility and the risk of autism in children, indicating a need for further investigation into these familial effects.