Soak the tamarind in hot water for about ten minutes and extract pulp into a cup.
Add oil to a pan and heat. Splutter the mustard seeds. Add onion pieces and fry till deep brown. Add the tomato pieces and simmer till tomato pieces become smooth. Add the coconut pieces and fry further.