In patients with type 2 diabetes, sodium–glucose cotransporter 2 (SGLT2) inhibitors reduce the risk of the first hospitalization for heart failure, possibly through glucose-independent mechanisms in part, but the underlying mechanisms remain largely unknown. Here, SLC5A2 is linked to heart failure.