When an onion is sliced, it will released a compound such as Lachrymator. When the compound is released, this form of sulfuric acid can irritate the nerves on our eyes which are the lacrimal gland causing us to tear.