Ulundurpet was once the home for Palyagar (பாளையகாரர்).The remains of the mud fort are still to be seen. There is a evidence that on July,1750 a Palyagar Ulundhur Raghunatha Nayinar captured Elavasanur fort against French troop. The name Ulundurpettai is derived from the
Saivaite temple currently called as Mashapureeswarar (மாஷபுரீஸ்வரர்) temple, located in the area Ulundandar Kovil (உளுந்தண்டார் கோவில்), dedicated to Ulundandar or the Lord of the
black-gram. The story goes that a merchant was once halting there with a consignment of
pepper (மிளகு). When a man came up and asked what was in the bags. The merchant lied and said it was black-gram (உளுந்து) to which the stranger replied 'Let it be so'. At the next stage the man found that his goods had actually been changed into black-gram and returning to the spot where he had told the lie he found the stranger still there and realized that he was
Lord Siva. The merchant then built a temple for the lord. == Demographics ==