The release of propanethial S-oxide, a volatile sulfur compound derived from sulfenic acids, is responsible for causing tears when cutting onions.