Atherosclerosis (AS) with iron and lipid overload and systemic inflammation is a risk factor for Alzheimer's disease. M1 macrophage/microglia participate in neuronal pyroptosis and recently have been reported to be the ferroptosis-resistant phenotype. Quercetin plays a prominent role in preventing and treating neuroinflammation, but the protective mechanism against neurodegeneration caused by iron deposition is poorly understood. ApoE-/- mice were fed a high-fat diet with or without quercetin treatment. The Morris water maze and novel object recognition tests were conducted to assess spatial learning and memory, and nonspatial recognition memory, respectively. Prussian blue and immunofluorescence staining were performed to assess the iron levels in the whole brain and in microglia, microglia polarization, and the degree of microglia/neuron ferroptosis. In vitro, we further explored the molecular biological alterations associated with microglial polarization, neuronal pyroptosis, and ferroptosis via Western blot, flow cytometry, CCK8, LDH, propidium iodide, and coculture system. We found that quercetin improved brain lesions and spatial learning and memory in AS mice. Iron deposition in the whole brain or microglia was reversed by the quercetin treatment. In the AS group, the colocalization of iNOS with Iba1 was increased, which was reversed by quercetin. However, the colocalization of iNOS with PTGS2/TfR was not increased in the AS group, suggesting a character resisting ferroptosis. Quercetin induced the expression of Arg-1 and decreased the colocalizations of Arg-1 with PTGS2/TfR. In vitro, ox-LDL combined with ferric ammonium citrate treatment (OF) significantly shifted the microglial M1/M2 phenotype balance and increased the levels of free iron, ROS, and lipid peroxides, which was reversed by quercetin. M1 phenotype induced by OF caused neuronal pyroptosis and was promoted to ferroptosis by L-NIL treatment, which contributed to neuronal ferroptosis as well. However, quercetin induced the M1 to M2 phenotype and inhibited M2 macrophages/microglia and neuron pyroptosis or ferroptosis. In summary, quercetin alleviated neuroinflammation by inducing the M1 to M2 phenotype to inhibit neuronal pyroptosis and protected neurons from ferroptosis, which may provide a new idea for neuroinflammation prevention and treatment.