The hormonal milieu influences immune tolerance and the immune response against viruses and cancer, but the direct effect of androgens on cellular immunity remains largely uncharacterized. We therefore sought to evaluate the effect of androgens on murine and human T cells in vivo and in vitro. We found that murine androgen deprivation in vivo elicited RNA expression patterns conducive to IFN signaling and T-cell differentiation. Interrogation of mechanism showed that testosterone regulates T-helper 1 (Th1) differentiation by inhibiting IL-12-induced Stat4 phosphorylation: in murine models, we determined that androgen receptor binds a conserved region within the phosphatase, Ptpn1, and consequent up-regulation of Ptpn1 then inhibits IL-12 signaling in CD4 T cells. The clinical relevance of this mechanism, whereby the androgen milieu modulates CD4 T-cell differentiation, was ascertained as we found that androgen deprivation reduced expression of Ptpn1 in CD4 cells from patients undergoing androgen deprivation therapy for prostate cancer. Our findings, which demonstrate a clinically relevant mechanism by which androgens inhibit Th1 differentiation of CD4 T cells, provide rationale for targeting androgens to enhance CD4-mediated immune responses in cancer or, conversely, for modulating androgens to mitigate CD4 responses in disorders of autoimmunity.immunomodulation | cancer immunotherapy | prostate neoplasm