These medications work by either killing parasites or inhibiting their growth. For example, chloroquine and artemisinin, used in malaria treatment, disrupt the parasite's lifecycle. Anthelmintics such as albendazole interfere with the energy metabolism of worms, leading to their death.