Tempering is a cooking technique used in the cuisines of India, Nepal, Pakistan, Bangladesh, 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 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.
In Tamil, the technique is called thaalippu (தாளிப்பு). It is also called thalimpu (తాళింపు) or popu (పోపు) in Telugu; তড়কা (torka), বাগার (bagar), or ফোড়ন (phoron) in Bengali; tarka (ਤੜਕਾ) in Punjabi; chaunk (छौंक) in Hindi; oggaraṇe (ಒಗ್ಗರಣೆ) in Kannada; फोण्ण in Konkani; vaghaar (વઘાર) in Gujarati; phodni (फोडणी) in Marathi; baghaar (بگھار) in Urdu; and baghaara (ବଘାର) or chhunka (ଛୁଙ୍କ) in Oriya.
The Bengali name, bagar dewa (বাগার দেয়া), translates as "to temper" (bagar = the act of tempering; dewa = to give; hence "to give temperance to").