Mamallapuram was a port of the Pallava kings, whose capital was at Kanchipuram. The town is named after Narasimhavarman I, called Mamalla ("great wrestler"), who ruled in the 7th century. Under him and his successors, sculptors carved cave temples, monolithic shrines and huge reliefs out of the granite outcrops by the sea, and later built the structural Shore Temple under Rajasimha (Narasimhavarman II) around the early 8th century.
These monuments are among the earliest examples of Dravidian temple architecture, and they were listed together as the Group of Monuments at Mahabalipuram, a UNESCO World Heritage Site, in 1984. The 2004 Indian Ocean tsunami briefly exposed remains of other structures under the sand near the shore.