The diseases in which the immune system of the person is unable to recognise the difference between the self and the non-self cells, or tissues are called autoimmune diseases.
In rheumatoid arthritis, the patient's immune system works against itself and destroys the lining of joints which causes inflammation.
So, rheumatoid arthritis can be considered as an autoimmune disease.