•A causal protective effect of SGLT2 inhibition on the risk of prostate cancer was observed. Here, SLC5A2 is linked to Familial prostate cancer.