Final answer:
Ivermectin is the medication used to treat lice, including killing lice eggs. It works by causing paralysis and death in the parasites and is available in oral and topical forms.
Step-by-step explanation:
The medication used to treat lice, specifically to kill lice eggs, is called ivermectin. This medication is part of the avermectins, which are macrolide compounds effective against various parasitic infestations. Ivermectin binds to the glutamate-gated chloride channels in the nervous system of lice, causing paralysis and death. It's an effective treatment for not just lice, but also other parasitic worms in humans. For lice, ivermectin is available in both oral and topical forms, making it versatile for treating infestations.