First boil water in a deep bottomed pan and add split red gram dal, turmeric powder, red chilly powder, tamarind paste, ground nuts, jaggery, and required salt.
Cook in medium heat till the dal is done. Keep this aside.
Heat ghee in a pan and splutter mustard seeds. Add cumin seeds and asafoetida. Fry for a minute and add this to cooked gram mixture.
Now add chopped coriander leaves, green chillies and ginger. Cook covered for 2 more minutes.
Sprinkle garam masala over the sweet and sour dal in maharashtrian style. Keep covered for a few minutes before serving. Serve hot with rotis.