There is much debate as to whether garlic is a herb or a vegetable due to the way it's used in dishes. However, garlic is closely related to onions, leeks and shallots and comes from an edible plant, therefore botanically would be classed as a vegetable.