Surya (Sun), Ganesha and Kartikeya, in Hinduism. Temple construction is credited to the Pallava dynasty, who had established their kingdom with Kanchipuram (also known as "Kanchi" or "Shiva Vishnu Kanchi") as the capital city, considered one of the seven sacred cities under Hinduism. In Kanchi, after the Pallavas expanded their territories to the north, west and south both within Tamil, Andhra and Kannada territories under Emperor Narasimhavarman I, they started expanding their capital city of Kanchipuram and built many temples of great magnificence. Among the two unique specimens of temple architecture of the period 640–730 CE are the Tiru Parameswara Vinnagaram, which is also known as the Vaikunta Perumal temple and the Kailsahanathar Temple. The temple was built around 700 CE with additions in the 8th century and restorations in later centuries. It is the first structural temple built in South India by Narasimhavarman II (Rajasimha), also known as Rajasimha Pallaveswaram. His son, Mahendravarman III, completed the front façade and the gopuram (tower). Prior temples were either built of wood or hewn into rock faces in caves or on boulders, as seen in Mahabalipuram. The Kailasanathar temple became the trend setter for other similar temples in South India. According to local belief, the temple was a safe sanctuary for the rulers of the kingdom during wars. A secret tunnel, built by the kings, was used as an escape route and is still visible. It is believed that Raja Raja Chola I (985–1014 CE) visited the temple and drew inspiration from this temple to build the Brihadeeswara Temple. Currently, Kanchi Kailasanathar Temple is maintained by Archaeological Survey of India. Architecture The temple has retained the Pallava architecture in its original stylized form with influence of the later styles developed by the Chola Dynasty and Vijayanagara Emperors. It is of stone built architecture unlike the rock cut architecture built into hallowed caves or carved into rock outcrops as in Mahabalipuram. The tall gopuram (tower) is to the left and the temple complex is to the right. The temple's foundations are made of granite, which could withstand the weight of the temple, while the superstructure, including the carvings, are all made of sandstone. Initially, only the main sanctuary existed with pyramidal vimana and a detached mandapa (main hall). The temple complex is complete in all respects as it has garbagriha (sanctum sanctorum), antarala (inner enclosure), mandapa, a high compound wall, and an entrance