Roast the 1st 3 ingredients without oil and grind into fine powder.
Heat oil in a pan and add urad dhal, channa dhal and red chilies and fry for a few minutes. Add tamarind extract and salt. Allow it to boil. Add the ground spice powder and mix well. Stir constantly until it becomes thick and the oil floats on the top of the mixture and it comes without sticking to the pan. Refrigerate and store.