Taken together, we conclude that: T2DM causes DNA damage to the p2x4r gene and the downregulation of P2X4R expression, resulting in the over-activation of microglia in the hippocampus, thus contributing to memory impairment in T2DM rats induced by an HFD and STZ injection. Here, P2RX4 is linked to memory impairment.