Acute kidney injury (AKI) is a common, multicause clinical condition that, if ignored, often progresses to chronic kidney disease (CKD) and end-stage kidney disease, with a mortality rate of 40-50%. However, there is a lack of universal treatment for AKI. Inflammation is the basic pathological change of early kidney injury, and inflammation can exacerbate AKI. Macrophages are the primary immune cells involved in the inflammatory microenvironment of kidney disease. Therefore, regulating the function of macrophages is a crucial breakthrough for the AKI intervention. Our team chemically modified pyxinol, an ocotillol-type ginsenoside, to prepare PJ16 with higher solubility and bioavailability. In vitro, using a model of macrophages stimulated by LPS, it was found that PJ16 could regulate macrophage function, including inhibiting the secretion of inflammatory factors, promoting phagocytosis, inhibiting M1 macrophages, and promoting M1 transition to the M2c macrophage. Further investigation revealed that PJ16 may shield renal tubular epithelial cells (HK-2) damaged by LPS in vitro. Based on this, PJ16 was validated in the animal model of unilateral ureteral obstruction, which showed that it improves renal function and inhibits renal tissue fibrosis by decreasing inflammatory responses, reducing macrophage inflammatory infiltration, and preferentially upregulating M2c macrophages. In conclusion, our study is the first to show that PJ16 resists AKI and fibrosis by mechanistically regulating macrophage function by modulating the phenotypic transition from M1 to M2 macrophages, mainly M2c macrophages.