Although it is known that individuals living with HIV have a higher HPV prevalence, the impact of individual HPV types on HIV acquisition is less clear. In this prospective cohort study we investigated the relationship between HPV types and incident HIV infection among men who have sex with men (MSM) and transgender women (TW) in Lima, Peru.