It depends on the herb and the dish you are preparing. For maximum flavor and to prevent browning, add delicate herbs like basil at the end of cooking. For stronger herbs like rosemary, you can add them at the beginning of cooking to infuse their flavor into the dish. [3]