Diet adjustment will affect the health of gut microbiota, which in turn influences the development and function of the organism's brain through the gut-brain axis. Walnut oil (WO), peony seed oil (PSO) and camellia seed oil (CSO), as typical representatives of woody plant oils, have been shown to have the potential to improve cognitive impairment in mice, but the function mechanisms are not clear. In this study, we comparatively investigated the neuroprotective effects of these three oils on D-galactose (D-gal)-induced cognitive impairment in mice, and found that the ameliorative effect of WO was more prominent. During the behavioral experiments, supplementation with all three oils would improve spatial learning and memory functions in D-gal mice, with a significant reduction in the error times (