During the Medieval period, Saivism attained a dominant position in India. A large number of royal families adhered to this faith and built richly endowed temples dedicated to shiva. The Pratihara kings, Vatsaraja and Mahendrapala, were worshippers of Siva.
The finest examples of the art during the Gupta period are Ajanta caves. Out of the 31 rock-cut cave monuments at Ajanta, five are Chaitya Grihas. The five chaitya grihas are cave numbers 9, 10, 19, 26, and 29.