These medications can be used for both prophylaxis (prevention) and treatment of malaria. Prophylactic administration is typically recommended for travelers to malaria-endemic areas, while treatment is required for individuals diagnosed with malaria.