Adding garlic early in the cooking process mellows its flavor, creating a subtle, sweet undertone, while adding it late results in a pungent, sharper, and more pronounced garlic taste.
The difference in flavor comes down to how heat affects the compounds within garlic. Garlic contains allicin, which is responsible for its strong, characteristic flavor. When garlic is added early to a dish and cooked for a longer period, the allicin breaks down. This breakdown transforms the pungent compounds into milder, sweeter ones. The longer cooking time also allows the garlic flavor to infuse more thoroughly into the oil or other ingredients, creating a more integrated and subtle taste.
Conversely, when garlic is added late in the cooking process, it doesn't have as much time to break down. The allicin remains more intact, resulting in a much stronger, sharper, and more assertive garlic flavor. The flavor remains more on the surface and doesn't meld as deeply with the other ingredients. This is why you might add garlic towards the end of a stir-fry or as a finishing touch to a sauce when you want that bold garlic punch.
Be careful not to burn garlic, especially when adding it late. Burnt garlic becomes bitter and can ruin the entire dish. Keep the heat moderate and watch it closely.