BackgroundIn previous study, we found that the content of medium-chain fatty acid Caprylic Acid (FFA C8:0) may be an important risk factor of obesity induced prostate cancer (PCa). However, the relationship between FFA C8:0 and PCa has not been reported. In this study, we explored whether the FFA C8:0 can promotes the progression of PCa by up-regulating Krüppel-like factor 7 (KLF7).MethodsWe collected tissues from PCa patients and Benign Prostate Hyperplasia (BPH), constructed a primary-tumor bearing mouse model with obesity through high-fat diet, and observed the tumor formation ability of PCa cells. In vitro, CCK8 assay, plate cloning, Transwell and scratch experiment were used to detect the changes in biological behavior of PCa cells stimulated by FFA C8:0.ResultsFirst, we found that the expression level of KLF7 is higher in PCa tissues of patients, and the expression of KLF7 is positively correlated with tumour-promoting gene IL-6, while it is negative correlated with another tumour-suppressor gene p21. Then, this study found that PCa cells were more likely to form tumors in diet induced obese mice. Compared with the normal diet group (ND), the expression levels of KLF7 in tumor tissues in high-fat diet group (HFD) were higher. Futhermore, we verified that high concentrations of FFA C8:0 can promote the biological behavior of PCa cells by activating KLF7/IL-6/p21 signaling pathway, which is mediated by the GPR84.ConclusionsOur research may provide a potential target for clinical prevention and treatment of PCa which induced by obesity.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12885-023-10841-2.