Hydroxychloroquine is a medication that is used for various purposes. It is primarily known as an antimalarial drug, but it is also used in the treatment of certain autoimmune conditions, such as rheumatoid arthritis and systemic lupus erythematosus.