Ivermectin belongs to a class of medications called anthelmintics that works by killing the worms in the intestines. This drug treats Strongyloidosis and Onchocerciasis. Ivermectin does not kill the adult worms that cause onchocerciasis and therefore it will not cure this type of infection.