Increasing evidence confirms that tumor microenvironment (TME) can influence tumor progression and treatment, but TME is still understudied in adrenocortical carcinoma (ACC). In this study, we first scored TME using the xCell algorithm, then defined genes associated with TME, and then used consensus unsupervised clustering analysis to construct TME-related subtypes. Meanwhile, weighted gene co-expression network analysis was used to identify modules correlated with TME-related subtypes. Ultimately, the LASSO-Cox approach was used to establish a TME-related signature. The results showed that TME-related scores in ACC may not correlate with clinical features but do promote a better overall survival. Patients were classified into two TME-related subtypes. Subtype 2 had more immune signaling features, higher expression of immune checkpoints and MHC molecules, no CTNNB1 mutations, higher infiltration of macrophages and endothelial cells, lower tumor immune dysfunction and exclusion scores, and higher immunophenoscore, suggesting that subtype 2 may be more sensitive to immunotherapy. 231 modular genes highly relevant to TME-related subtypes were identified, and a 7-gene TME-related signature that independently predicted patient prognosis was established. Our study revealed an integrated role of TME in ACC and helped to identify those patients who really responded to immunotherapy, while providing new strategies on risk management and prognosis prediction.