When an onion is sliced or diced, the onion's cells release these compounds into the air. When this occurs, "enzyme" works to alter the amino acids into lachrymator compounds. This form of sulfuric acid irritates the nerves around the eyes making them tear.