Currently, it is still unknown whether human immune deficiency virus (HIV)ârelated structural alterations in the brain are dependent on age. With people living with HIV at different ages, we aim to investigate ageâspecific structural alterations in HIV patients. Eightyâthree male HIV patients and eightyâthree ageâmatched male controls were enrolled, and highâresolution T1 weighted images were collected and analyzed with four morphological metrics. Then, statistical analyses were respectively conducted to ascertain HIV effects, age effects, and medication effects in brain structure of HIV patients, and the relationship with neuropsychological evaluations were further explored. Finally, discriminative performances of these structural abnormalities were quantitatively testified with three machine learning models. Compared with healthy controls, HIV patients displayed lower gray matter volumes (GMV), lower gyrification index, deeper sulcus depth, and larger cortical thickness (CTH). Ageâspecific differences were found in GMV and CTH: youngâaged HIV patients displayed more obvious morphological alterations than middleâaged HIV patients when comparing corresponding ageâmatched healthy controls. Furthermore, ageâspecific longâterm medication effect of combination antiretroviral therapy were also presented. Additionally, several subcortical structural changes were negatively associated with language, attention and motor functions. Finally, three machine learning models demonstrated youngâaged HIV patients were easier to be recognized than middleâaged HIV patients. Our study indicated youngâaged HIV patients were more vulnerable to HIV infection in brain structure than middleâaged patients, and future studies should not ignore the age effect in studying the HIVârelated abnormalities.