Poonjar dynasty (Malayalam:പൂഞ്ഞാർ രാജവംശം, Tamil: பூஞ்ஞார் ராஜவம்சம்) was one of the royal dynasties in medieval Kerala descended from the Pandya kings of Madurai. History has it that Manavikrama Kulasekara Perumal, a Pandya king as the sole founder of the dynasty. It was a minor principality in the central Travancore region which covered the parts of present-day Dindigul, Cumbum, Kudallor, Bodinayakkanur, Vandiperiyar, Peerumedu and Kannan Devan hills. In , Kulothunga Chola, a famed Chola king entered in a battle with Manavikrama Kulasekara Perumal, who was a Pandya king. Kulothunga's first attempt to defeat him went unsuccessful but, his next attempt became successful which resulted in the failure of Manavikrama. Upon the failure, Manavikrama appointed his brother Maravarman Sreebhallava as the raja of Pandya kingdom and left Madurai with his family and some trusted servants. Later, he settled in Gudalloor region with his family and administered from there. When he learned of the availability of land at cheap rates in Kerala, he shifted to Thekkumkoor via Kumily, Periyar, Kolahalamedu and Vagamon. He also carried out the idols of Madhura Meenakshi, their kuladevatha (tutelary deity) and Sundareswarar (Shiva) which was used in the chariot festival in Madurai Meenakshi temple. These idols were later installed in the Poonjar Meenakshi temple on the banks of Meenachil river. Upon the journey to Thekkumkur, Manavikrama and his troops were unexpectedly attacked by some robbers near Vandiperiyar. But a mahout with an elephant suddenly appeared and defeated those thieves within no time. He gave a stick and the elephant to the king and warned him to leave the place. After the strange incidents at Vandiperiyar, Manavikrama reached Ettumanoor temple and stayed there. At night, some robbers tried to plunder the temple assets which was bravely resisted by the raja and his servants. Before shifting to Poonjar, Manavikrama and his family initially settled in Kanjirappally and built a shrine for goddess Meenakshi there.