 His consort Brihadambal is the family deity of the Thondaiman kings which ruled the princely Pudukkottai state.The temple was constructed by the Pallava king Mahendravarman I.Within the temple complex, there are shrines to Ganesa, Gangadhara and the Saptakannis.