Malathion exerts its toxic effects primarily by inhibiting acetylcholinesterase (AChE), an essential enzyme in nerve function. By inhibiting AChE, malathion causes an accumulation of acetylcholine at synapses, leading to overstimulation of neurons. This results in symptoms of toxicity such as muscle twitching, respiratory distress, and, in severe cases, death.