Autism spectrum disorder (ASD) is a heterogeneous collection of neurodevelopmental disorders, difficult to diagnose and currently lacking treatment options. The possibility of finding reliable biomarkers useful for early identification would offer the opportunity to intervene with treatment strategies to improve the life quality of ASD patients. To date, there are many recognized risk factors for the development of ASD, both genetic and non-genetic. Although genetic and epigenetic factors may play a critical role, the extent of their contribution to ASD risk is still under study. On the other hand, non-genetic risk factors include pollution, nutrition, infection, psychological states, and lifestyle, all together known as the exposome, which impacts the mother’s and fetus’s life, especially during pregnancy. Pathogenic and non-pathogenic maternal immune activation (MIA) and autoimmune diseases can cause various alterations in the fetal environment, also contributing to the etiology of ASD in offspring. Activation of monocytes, macrophages, mast cells and microglia and high production of pro-inflammatory cytokines are indeed the cause of neuroinflammation, and the latter is involved in ASD’s onset and development. In this review, we focused on non-genetic risk factors, especially on the connection between inflammation, macrophage polarization and ASD syndrome, MIA, and the involvement of microglia.