Why do onions make us cry?

Onions release a tiny gas when you cut them — and your eyes try to wash it away.