The immune system has mechanisms to develop tolerance to self-antigens, preventing an immune response against normal body tissues. However, in certain circumstances, tolerance mechanisms can break down, leading to autoimmune diseases where the immune system mistakenly targets self-antigens.