This study provides genetic evidence supporting that SGLT2 inhibitors increase the risk of obsessive-compulsive disorder, anxiety disorder, and bipolar affective disorder. This evidence concerns the gene SLC5A2 and anxiety disorder.