Rheumatoid arthritis is an autoimmune disease that causes the immune system to attack the lining of the joints, leading to inflammation. This can result in joint pain, swelling, stiffness, and eventually joint deformity.