Tempering is a cooking technique used in the cuisines of India, Bangladesh, Pakistan, and Sri Lanka, in which whole spices (and sometimes also other ingredients such as dried chillies, minced ginger root or sugar) are roasted briefly in oil or ghee to liberate essential oils from cells and thus enhance their flavours, before being poured, together with the oil, into a dish. Tempering is also practiced by dry roasting whole spices in a pan before grinding the spices.
Tempering is typically done at the beginning of cooking, before adding the other ingredients for a curry or similar dish, or it may be added to a dish at the end of cooking, just before serving (as with a dal, sambar or stew).
Ingredients typically used in tempering include cumin seeds, black mustard seeds, fennel seeds, fresh green chilis, dried red chilis, fenugreek seeds, asafoetida, cassia, cloves, urad dal, curry leaves, chopped onion, garlic, or tejpat leaves. When using multiple ingredients for in tempering, they are often added in succession, with those requiring longer cooking added earlier, and those requiring less cooking added later. In Oriya cuisine and Bengali cuisine, a mixture of whole spices called Panch phutana or panch phoron is used for this purpose.