1, classification differences: garlic, belonging to the lily family, genus Allium (Onion subfamily); onions, angiosperms, monocotyledonous plants, asparagus, Onionaceae, genus Allium.
2, taste difference: onion, with a pungent flavor, slightly sweet taste, with characteristic aroma; garlic, with a thicker pungent flavor, with characteristic aroma, sweetened by the heat flavor.
3, the role of the difference: onions in the cooking process in the deodorization, deodorization, aroma effect; and garlic strong irritation can tighten the taste of cooking, so that the taste of cooking is better, but also can be sterilized.