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.