Hydroxychloroquine is in a class of drugs called antimalarials and is also an antirheumatic drug. It works by killing the organisms that cause malaria. Hydroxychloroquine may work to treat rheumatoid arthritis and systemic lupus erythematosus by decreasing the activity of the immune system.