Shaivism
Post-Gupta development

Most of the Gupta kings, beginning with Chandragupta II (Vikramaditya) (375–413 CE) were known as Parama Bhagavatas or Bhagavata Vaishnavas and had been ardent promoters of Vaishnavism. But following the Huna invasions, especially those of the Alchon Huns circa 500 CE, the Gupta Empire declined and fragmented, ultimately collapsing completely, with the effect of discrediting Vaishnavism, the religion it had been so ardently promoting. The newly arising regional powers in central and northern India, such as the Aulikaras, the Maukharis, the Maitrakas, the Kalacuris or the Vardhanas preferred adopting Shaivism instead, giving a strong impetus to the development of the worship of Shiva. Vaishnavism remained strong mainly in the territories which had not been affected by these events: South India and Kashmir.

In the early 7th century, the Chinese Buddhist pilgrim Xuanzang (Huen Tsang) visited India and wrote a memoir in Chinese that mentions the prevalence of Shiva temples all over North Indian subcontinent, including in the Hindu Kush region such as Nuristan. Between the 5th and 11th century CE, major Shaiva temples had been built in central, southern and eastern regions of the subcontinent, including those at Badami cave temples, Aihole, Elephanta Caves, Ellora Caves (Kailasha, cave 16), Khajuraho, Bhuvaneshwara, Chidambaram, Madurai, and Conjeevaram.

Major scholars of competing Hindu traditions from the second half of the 1st millennium CE, such as Adi Shankara of Advaita Vedanta and Ramanuja of Vaishnavism, mention several Shaiva sects, particularly the four groups: Pashupata, Lakulisha, tantric Shaiva and Kapalika. The description is conflicting, with some texts stating the tantric, puranik and Vedic traditions of Shaivism to be hostile to each other while others suggest them to be amicable sub-traditions. Some texts state that Kapalikas reject the Vedas and are involved in extreme experimentation, while others state the Shaiva sub-traditions revere the Vedas but are non-Puranik.
detectable_content:number_placeholders[4], change_case:english_lowercase