Dapagliflozin is mainly used to treat type 2 diabetes. It can also be used to treat heart failure and chronic kidney disease (CKD).