Cutaneous human papillomaviruses (HPVs) have been associated with squamous cell carcinoma (SCC) in case-control studies, but there are limited data from prospective studies assessing whether virus exposure predicts risk of future cancer development. Two major biobanks, the Southern Sweden Microbiology Biobank (1971-2003) and the Janus Biobank (1973-2003) in Norway, containing samples from 850,000 donors, were searched for incident skin cancer for up to 30 years using registry linkages. Altogether, 2,623 donors with samples taken before diagnosis of SCC or basal cell carcinoma (BCC) of the skin were identified. Prediagnostic samples and samples from 2,623 matched controls were tested for antibodies against 33 types of HPV. Baseline seropositivity to HPV types in genus ß species 2 was associated with SCC risk (odds ratio = 1.3, 95% confidence interval: 1.1, 1.7); this was also the case for samples taken more than 18 years before diagnosis (odds ratio = 1.8, 95% confidence interval: 1.1, 2.8). Type-specific persistent seropositivity entailed elevated point estimates for SCC risk for 29 HPV types and decreased point estimates for only 3 types. After multiple hypothesis adjustment, HPV 76 was significantly associated with SCC risk and HPV 9 with BCC risk. In summary, seropositivity for certain HPV types was associated with an increased risk for future development of SCC and BCC.