Anthelmintics work by targeting specific biological functions of helminths, either paralyzing them or disrupting their metabolism, leading to their death and expulsion from the host. Commonly used anthelmintics include albendazole, mebendazole, and ivermectin. Each drug has a specific mode of action and spectrum of activity against different types of helminths.