The reason onions make our eyes tear up when cut is due to the chemicals released from the onions.
The chemical that onions contain that irritates our eyes is "syn-propanethial-S-oxide". The chemical stimulates the eyes' lachrymal glands which causes our eyes to ear up when cutting onions.