The sprawling temple, an architectural splendour in granite, was rebuilt in its present form in the 18th century by the Travancore Royal House which had ruled southern Kerala and some adjoining parts of Tamil Nadu before integration of the princely state with the Indian Union in 1947.