In addition to its health benefits, garlic is primarily a vegetable and a spice at the same time, and this is its basic function in the kitchen.

An excerpt from the article 20 facts about garlic

Although raw garlic has a characteristic (unpleasant) taste and smell, when added to cooked and fried dishes, it loses it, enriching the taste of the dish.