Errors of the immune system may cause damage. In autoimmune diseases, the body attacks parts of itself because the system mistakes some parts of the body as 'foreign'. Some kinds of arthritis are caused this way.