Complex sentence: The Pallavas were largely Brahmanical Hindus, constructing Kailasanathar stone temples and sculptures and the Ekambareswarar Temple to Shiva, shrines to the deity Vishnu and Amman, to whom they dedicated the Kamakshi Amman Temple.
Split into simpler sentences: The Pallavas were largely Brahmanical Hindus devoted to Shiva, a deity to whom they constructed numerous famous Kailasanathar stone temples and sculptures and the Ekambareswarar Temple. Other deities of worship for the dynasty included Vishnu and Amman, to whom they dedicated the Kamakshi Amman Temple.