Nonsteroidal anti-inflammatory drugs (NSAIDs) have been assigned a promising role in the chemoprevention of various malignancies. However, epidemiological data on the association between NSAID use and nonmelanoma skin cancer (NMSC) are limited. To explore whether patients regularly exposed to systemic NSAIDs are at a reduced risk of basal cell carcinoma (BCC) or squamous cell carcinoma (SCC), we conducted a population-based case-control analysis using the Clinical Practice Research Datalink, a United Kingdom primary care database. We identified 65,398 patients with incident BCC and 7,864 patients with incident SCC diagnosed between 1995 and 2013 and matched 1 and 4 NMSC-free controls to each BCC and SCC case, respectively, on age, sex, general practice, calendar time and years of history in the database. We compared prior NSAID exposure between cases and controls using multivariate conditional logistic regression analyses controlling for several potential confounders. Overall, we found no association between NSAID use and BCC, but when looking exclusively at users of single NSAID substances there was a suggestion of a reduced BCC risk in regular users of aspirin and ibuprofen (adjusted odds ratio