In summary, the present study indicated that vitamin D deficiency was closely associated with learning and memory impairment in mice, probably in part by inducing 27-OHC metabolism disorders through upregulating the expression of CYP27A1. Here, CYP27A1 is linked to vitamin D deficiency.