Digoxin is a cardiac glycoside derived from the leaves of the Digitalis plant. It is primarily used to treat various heart conditions, including atrial fibrillation, atrial flutter, and sometimes heart failure that cannot be controlled by other medication. By increasing the force of myocardial contraction and decreasing the heart rate, digoxin improves cardiac output and controls heart rate effectively.