The history of India includes the prehistoric settlements and societies in the Indian subcontinent; the advancement of civilisation from the Indus Valley Civilisation to the eventual blending of the Indo-Aryan culture to form the Vedic Civilisation; the rise of Hinduism, Jainism and Buddhism; the onset of a succession of powerful dynasties and empires for more than three millennia throughout various geographic areas of the subcontinent, including the growth of nomadic Central Asian Muslim dominions during the Medieval period intertwined with Hindu powers; the advent of European traders resulting in the establishment of the British rule; and the subsequent independence movement that led to the Partition of India and the creation of the Republic of India.
Evidence of anatomically modern humans in the Indian subcontinent is recorded as long as 75,000 years ago, or with earlier hominids including Homo erectus from about 500,000 years ago. Considered a cradle of civilisation, the Indus Valley Civilisation, which spread and flourished in the north-western part of the Indian subcontinent from 3300 to 1300 BCE, was the first major civilisation in South Asia. A sophisticated and technologically advanced urban culture developed in the Mature Harappan period, from 2600 to 1900 BCE. This civilisation collapsed at the start of the second millennium BCE and was later followed by the Iron Age Vedic Civilisation. The era saw the composition of the Vedas, the seminal texts of Hinduism, and social stratification based on caste. The Vedic Civilisation extended over much of the Indo-Gangetic plain and witnessed the rise of major polities known as the Mahajanapadas. In one of these kingdoms, Magadha, Gautama Buddha and Mahavira propagated their Shramanic philosophies during the fifth and sixth century BCE.