Shiva had gifted the Shiva Lingam to the king when his consort Parvati was away for her bath. When Parvati turned up for worship the Shiva Lingam was not there. She got upset on enquiry she know that it was presented to the King Mandhata, by her husband. Being too much attached to it she wanted the Shiva Lingam back. Shiva told her that he had no objection in her trying to get it back. Parvati now offered Bhadrakali and a host of bhootha to rush up and get back the Shiva Lingam from the King. With the army of bhootha, Bhadrakali reached the northern slope of Thirumandha hill. The brightness emitted by the Shiva Lingam installed by king Mandhata was so great that it dazzled the eyes of Bhadrakali and the bhoothas and they were unable to move up the hills. So they started throwing up the weapons from the foot of the hill. The ascetic attending on Mandhata were unarmed but tried to defend themselves with whatever things they had. These being insufficient to protect them they plucked Attanga nuts from their creeper plants, which were available in plenty and threw them at the enemy. Because of the power of Shiva and the divine power of Mandhata the nuts got changed into arrows instantly. Bhadrakali and her army of bhootha could not resist them the fight lasted for fifteen days.