Aprepitant works by blocking neurokinin 1 (NK1) receptors in the brain, which are responsible for triggering nausea and vomiting. By inhibiting the action of substance P, a natural substance that causes vomiting, Aprepitant helps prevent these symptoms.