Antimalarial drugs are used for two main purposes: treatment of active malaria infections and prophylaxis to prevent infection in individuals who are at risk. The choice of drug depends on several factors including the species of Plasmodium, the drug resistance patterns in the area, and patient-specific factors such as age, pregnancy status, and other health conditions.