History of India and the Indian subcontinent during the formation of medieval (classical) Hinduism, the Buddhist period, and the following Hindu periods, until the Islamic invasions of the 11th century.