Hydroxychloroquine is a medication used to treat certain autoimmune diseases such as rheumatoid arthritis, lupus, and certain types of malaria.