Autoimmune disease is when the body's immune system attacks its own body. The function of the immune system is to recognise and reject foreign bodies like bacteria. Sometimes the system goes wrong, and the body itself gets damaged by its immune system. Examples are: