Volatile organosulfur compounds, specifically those derived from sulfur and forming alil sulfide structures, are responsible for the characteristic smell and tear-inducing effect of onions.