Digoxin is used to treat heart failure, usually along with other medications. It is also used to treat certain types of irregular heartbeat (such as chronic atrial fibrillation). Treating heart failure may help maintain your ability to walk and exercise and may improve the strength of your heart.