We identify independent associations between skin cancer and genetic and non-genetic risk factors (sex, UV light exposure, lifestyle, socioeconomic factors and PDE5a inhibitors) in a diverse cohort of more than 400,000 Americans in the All of Us Research Program (AoU) database, of whom ~4.4% have been diagnosed with skin cancer. Here, PDE5A is linked to skin cancer.