Pyrethroids function by targeting the nervous system of insects. They prolong the opening of sodium channels in nerve cells, leading to continual nerve firing, paralysis, and eventually the death of the insect. This mode of action makes pyrethroids fast-acting and highly effective.