In this study, we found that abnormal CYP11A1 gene expression in pregnant rats could induce anxiety and autism-related behaviors in their offspring through the regulation of microglial immune activation and the dysregulation of gamma-aminobutyric acid type A (GABAA) receptor (GABAR) expression. Here, CYP11A1 is linked to autism.