Ivermectin medication is used to treat certain parasitic roundworm infections. Treating parasitic infections helps improve your quality of life. In people with weakened defense (immune) systems, treating roundworm infections can reduce the risk of developing a serious or life-threatening infection. Ivermectin belongs to a class of drugs known as anthelmintics