In summary, our study revealed a novel mechanism by which ZDHHC2 mediated S‐palmitoylation modulates ferroptosis and castration sensitivity in prostate cancer via controlling lipid peroxide production. This evidence concerns the gene ZDHHC2 and prostate cancer.