Pyrantel pamoate is a depolarizing neuromuscular blocking agent that selectively stimulates nicotinic acetylcholine receptors on nematode muscle cells, causing persistent activation leading to spastic paralysis. The paralyzed worms lose their grip on the intestinal mucosa and are expelled by normal peristalsis, thereby eradicating the infection.