Transplant rejection is an immune response where the body's immune system attacks and damages a transplanted organ or tissue, treating it as foreign. This can occur at any time after transplantation and requires medical management to preserve the function of the transplanted organ.