There are hardly any remains of Hindu temples before the Gupta dynasty in the 4th century CE; no doubt there were earlier structures in timber-based architecture. The rock-cut Udayagiri Caves are among the most important early sites.[40] The earliest preserved Hindu temples are simple cell-like stone temples, some rock-cut and others structural, as at Sanchi.[41] By the 6th or 7th century, these evolved into high shikhara stone superstructures. However, there is inscriptional evidence such as the ancient Gangadhara inscription from about 424 CE, states Meister, that towering temples existed before this time and these were possibly made from more perishable material. These temples have not survived.[41][27]
No pre-7th century CE South Indian style stone temples have survived. Examples of early major South Indian temples that have survived, some in ruins, include the diverse styles at Mahabalipuram, from the 7th and 8th centuries. However, according to Meister, the Mahabalipuram temples are “monolithic models of a variety of formal structures all of which already can be said to typify a developed “Tamil Architecture” (South Indian) order”. They suggest a tradition and a knowledge base existed in South India by the time of the early Chalukya and Pallava era when these were built. Other examples are found in Aihole and Pattadakal.[42][43]
From between about the 7th and 13th centuries a large number of temples and their ruins have survived (though far fewer than once existed). Many regional styles developed, very often following political divisions, as large temples were typically built with royal patronage. In the north, Muslim invasions from the 11th century onwards reduced the building of temples, and saw the loss of many existing ones.[35] The south also witnessed Hindu-Muslim conflict that affected the temples, but the region was relatively less affected than the north.[44] In late 14th century, the Hindu Vijayanagara Empire came to power and controlled much of South India. During this period, the distinctive very tall gopuram gatehouse actually a late development, from the 12th century or later, typically added to older large temples.[35]