Permethrin works by targeting the nervous system of parasites. It disrupts the sodium channel function, leading to paralysis and eventual death of the parasites. This mechanism makes it effective against a wide range of insects, including lice and scabies mites.