Grate coconut finely or beat in the food processor keep aside.
Heat oil in a pan and add mustard seeds into it.
Allow it to splutter, then add curry leaves, stir and add the shallots, turmeric powder, green chillies, jeera and garlic.
Saute for sometime. Add chopped spinach. Stir for a few minutes. Add salt, stir and cook until all the water evaporates and thoran becomes dry. Serve with rice.