Referral tertiary care hospital for adult patients with cancer. We reviewed data of patients from the AIDS Cancer Clinic on antiretroviral therapy in chronic control who were consecutively referred for high-resolution anoscopy (HRA), where they underwent anal evaluation, collection of specimens for anal cytology and anal human papillomavirus (HPV) followed by HRA with directed biopsy if needed. A total of 155 patients were included; 149 (96.1%) were men, all of them men who have sex with men (MSM); the median age was 39 (IQR 32-47) years; 105 (67.7%) with Kaposi sarcoma, 40 (25.8%) with non-Hodgkin lymphoma and 10 (6.4%) with other neoplasms; only 7 (4.5%) had active cancer. The prevalence of HR-HPV infection was 89% (n=138) (95% CI 83-93) with at least one HR-HPV infection, and 62% (96) had coinfection with at least two types; the median HR-HPV types of coinfection were 3 (IQR 2-4). The number of patients infected with HPV 16 was 64 (41.3%, 95% CI 33.8-49.3), HPV 18 was 74 (47.7%, 95% CI 39.9-55.7) and with both 35 (22.6%). Some 59 patients (38%) had high-grade squamous intraepithelial lesions (HSIL) and 49 (31.6%) had low-grade squamous intraepithelial lesions (LSIL). The prevalence of HR-HPV and HSIL among patients aged ≤35 and >35 years was the same. In this cohort of PLWHIV with a history of malignancy we found a high prevalence of HR-HPV 16 and 18 and anal HSIL, even in persons aged ≤35 years. These data highlight the importance of anal cancer screening in PLWHIV and history of malignancy.