The immune system is designed to protect the body from foreign invaders such as bacteria and viruses. When foreign tissue is introduced, such as in the case of a uterus transplant, the immune system may recognize it as a threat and initiate an attack. This response is mediated by various immune cells and antibodies that target the foreign tissue.