Carvedilol is a medication primarily used to treat heart failure and high blood pressure. It belongs to a class of drugs known as beta-blockers, which work by blocking the action of certain natural substances in the body, such as adrenaline, that affect the heart and blood vessels.