When we cut onions
When we cut onions, two cells present in them are released: one rich in sulphides and the other in enzymes

When these cells mix, a reaction occurs that produces an acid called sulfenic acid. This acid is transformed into gas and, when in contact with water, generates a weak solution of sulfuric acid. As the eyes are always wet, the solution formed causes irritation in the eyes, which causes tears. That's why we cry when we cut onions.