Anthelmintics are medications used to treat worm infections in dogs and cats. They work by killing parasitic worms or promoting their expulsion from the body. There are various anthelmintics that are effective against specific types of worms, such as roundworms, tapeworms, and hookworms. The choice of the right anthelmintic depends on the type of worm infestation.