Ivermectin is used to treat certain parasitic roundworm infections. Curing parasitic infections helps to improve your quality of life. In people with weakened defense (immune) systems, curing roundworm infections can reduce the risk of developing a severe or life-threatening infection. Ivermectin belongs to a class of drugs known as antihelmintics. It works by paralyzing and killing parasites.