Hinduism is a polytheistic religion practiced in South India. The goal is to achieve moksha through worship of gods like Brahma, Vishnu, Shiva and goddesses like Lakshmi and Parvati. Temple architecture is based on a grid system and includes a central sanctuary and pillared halls. Important examples from the Pallava period at Mamallapuram include rock-cut temples and rathas. The Chola period saw large brick temples like Brihadeeswarar Temple at Thanjavur with huge gopurams. The Nayaka period Minakshi Temple at Madurai has a hall of thousand pillars and large sculpted gopurams.