The occurrence of an immune reaction against the organism's own cells or tissues. The phenotype is HP_0002960 (Autoimmunity). Also known as: Autoimmune condition, Autoimmune disease, Autoimmune disorder.