Ivermectin is in a class of medications called anthelmintics. It treats strongyloidosis by killing the worms in the intestines. It treats onchocerciasis by killing the developing worms. Ivermectin does not kill the adult worms that cause onchocerciasis and therefore it will not cure this type of infection.