This study investigated whether Danggui Shaoyao San and its disassembled prescriptions could improve cognitive deficits in APP/PS1 mice by modulating the structure of the gut microbiota, thereby providing a theoretical basis for AD treatment and the further development and application of Danggui Shaoyao San. The gene discussed is APP; the disease is Cognitive impairment.