Chopping an onion produces a chemical irritant which stimulates the eyes' lachrymal glands to produce tears. When an onion is cut, its cell structure is broken apart, allowing the acid to form a chemical that rises into the air, thus inducing tears. These tears are known as reflex tears and are released to protect eyes from irritants.