Yes, garlic really is a vegetable. It’s a member of the lily family, which includes onions, shallots, leeks, and scallions—all vegetables as well. Although strongly flavored and most often used as seasonings, they all make delicious eating when cooked alone.