Digoxin belongs to a class of medications called cardiac glycosides. It works by inhibiting the sodium-potassium pump in heart cells, which leads to increased intracellular calcium levels and improved heart function.