A heart transplant removes a damaged or diseased heart and replaces it with a healthy one. It is the last resort for people with heart failure when all other treatments have failed.