The pathology of Alzheimer's disease (AD) is featured with the extracellular amyloid-β (Aβ) plaques that perturb the mechanical properties of brain tissues. Microglia sense and integrate biochemical cues in their local microenvironment, intimate linking with AD progress. However, neither the microglial mechanosensing pathway nor its impact on AD pathogenesis is well studied. Here, we showed that the mechanosensitive ion channel Piezo1 expression was increased in microglia upon stiffness stimuli of Aβ fibrils. The upregulation of Piezo1 in Aβ plaque-associated microglia was observed in AD mouse models and human patients. Microglia lacking Piezo1 disturbed microglial clustering, phagocytosis, and compaction of Aβ plaques, resulting in the exacerbation of Aβ pathology and cognitive decline in the 5×FAD mice. Conversely, pharmacological activation of Piezo1 ameliorated brain Aβ burden and cognitive impairment in the 5×FAD mice. Together, our results reveal Piezo1, as a mechanosensor of Aβ fibrils stiffness in microglia, represents a promising therapeutic target for AD.