In conclusion, PIO inhibited the expression of apelin in T2DM rat models to prevent diabetic macroangiopathy, and negatively regulated the gene transcription of apelin by promoting transcription of KLF4 in the apelin promoter. Here, KLF4 is linked to type 2 diabetes mellitus.