The immune system responds to genetic and biochemical variations in an adaptive manner that may contribute to autoimmune diseases such as type 1 diabetes and rheumatoid arthritis. The immune system plays an important role also in many other diseases.