Chloroquine is a medication primarily used to prevent and treat malaria. It also has applications in treating autoimmune diseases like rheumatoid arthritis and lupus. As an antimalarial drug, chloroquine works by interfering with the growth of parasites within the red blood cells.