Your immune system's job is to find and destroy things in the body that may cause harm. But in some cases, the immune response can be a problem. After a heart transplant, your immune system sees your new heart as a threat. It can start to attack the heart. This is called rejection.