Thirunavaya Navamukunda Temple, near Ponnani in Malappuram district is situated on the banks of the river Bharathapuzha. Thirunavaya was once the capital of Perumpadapu Swaroopam. It is indeed the cradle of culture in northern Kerala. Holding immense historical importance, this is the place where ‘Mamangam’, a grand assembly of the rulers of Kerala was held once every 12 years, in olden times. This extravagant festival was held for the last time in 1755 AD. The famous and ancient Thirunavaya Temple,
Thirunavaya is considered equivalent to Varanasi because of the presence of Shiva, Vishnu and Brahma temples. It is a well known story that Markandeya was destined to die at th age of 16. When Lord Yama came to take his life, the little boy ran into this temple and prayed to Perumal to save him. Perumal appeared before the boy and gave him a Shiva linga for worship and advised the boy to escape from the backside entrance. He assured that Lord Shiva would take care of him.
As soon as Markandeya escaped from the backside, Perumal placed a big stone and closed the way permanently and ensured that Yama could not enter the way. To this day, the door behind Perumal remains closed. Markandeya worshiped Shiva near to this temple