Magadha was an ancient Indian kingdom in southern Bihar and was counted as one of the sixteen Mahajanapadas (Sanskrit: "Great Countries") of ancient India. Magadha played an important role in the development of Jainism and Buddhism, and two of India's greatest empires, the Maurya Empire and Gupta Empire, originated in Magadha.
The existence of Magadha is recorded in Vedic texts much earlier in time than 600 BCE. The earliest reference to the Magadha people occurs in the Atharvaveda, where they are found listed along with the Angas, Gandharis, and Mujavats. The core of the kingdom was the area of Bihar south of the Ganges; its first capital was Rajagriha (modern Rajgir), then Pataliputra (modern Patna). Rajagriha was initially known as 'Girivrijja' and later came to be known as so during the reign of Ajatashatru. Magadha expanded to include most of Bihar and Bengal with the conquest of Vajji confederation and Anga, respectively, The kingdom of Magadha eventually came encompass Bihar, Jharkhand, Orissa, West Bengal, eastern Uttar Pradesh, and the nations of Bangladesh and Nepal.