EZH2 expression in PCa was associated with DNA methylation modifications, TME, immune-related genes, TMB, TNB, and MMR. Here, EZH2 is linked to posterior cortical atrophy.