Here, the authors identify genetic ancestry, lifestyle, social determinants of health, and PDE5a inhibitor use as independent risk factors for skin cancer in the All of Us dataset, and integrate these factors into an XGBoost multiethnic model for identifying patients with skin cancer. This evidence concerns the gene PDE5A and skin cancer.