Empagliflozin is used to treat type 2 diabetes by helping the kidneys remove excess sugar from the blood through urine. It is also used to reduce the risk of cardiovascular events such as heart attacks, strokes, and hospitalization for heart failure in people with type 2 diabetes or heart disease.