Inflammatory infiltration plays important roles in both carcinogenesis and metastasis. We are interested in understanding the inhibitory mechanism of metformin on tumor-associated inflammation in prostate cancer. By using a transgenic adenocarcinoma of the mouse prostate (TRAMP) mouse model, macrophage migration assays, and patient samples, we examined the effect of metformin on tumor-associated inflammation during the initiation and after androgen deprivation therapy of prostate cancer. Treating TRAMP mice with metformin delays prostate cancer progression from low-grade prostatic intraepithelial neoplasia to high-grade PIN, undifferentiated to well-differentiated, and PIN to adenocarcinoma with concurrent inhibition of inflammatory infiltration evidenced by reduced recruitment of macrophages. Furthermore, metformin is capable of inhibiting the following processes: inflammatory infiltration after androgen deprivation therapy (ADT) induced by surgically castration in mice, bicalutamide treatment in patients, and hormone deprivation in LNCaP cells. Mechanistically, metformin represses inflammatory infiltration by downregulating both COX2 and PGE2 in tumor cells. Metformin is capable of repressing prostate cancer progression by inhibiting infiltration of tumor-associated macrophages, especially those induced by ADT, by inhibiting the COX2/PGE2 axis, suggesting that a combination of ADT with metformin could be a more efficient therapeutic strategy for prostate cancer treatment. .