RA is an autoimmune disease in which the immune system attacks the lining of joints. Osteoarthritis leads to the wearing away of the cartilage in the joints.