Cardiac rehabilitation is a supervised program that includes exercise, education, and support for individuals with heart conditions, including heart failure, to improve physical and emotional well-being.