Why does Pepper Make You Sneeze?

Pepper contains a compound called piperine, that is irritating to the mucus membranes of the nose. When we breath the pepper in, it stimulates the membranes which trigger a sneeze to dispel the irritant.