High-salt-driven gut microbiota dysfunction aggravates prostatitis by promoting AHR/SGK1/FOXO1 axis-mediated Th17 cell differentiation. Here, AHR is linked to male reproductive organ cancer.