A phenomenon that occurs when the immune system attacks a transplanted organ, tissue, or cell. Immunosuppressive drugs help prevent rejection.