Bimbisāra (in Buddhist tradition) or Shrenika () and Seniya () in the Jain histories (558-491 BCE or during the late 5th century BCE) was the King of Magadha (543-492 BCE or 400 BCE) and belonged to the Haryanka dynasty. He was the son of Bhattiya. His expansion of the kingdom, especially his annexation of the kingdom of Anga to the east, is considered to have laid the foundations for the later expansion of the Mauryan Empire. According to Jain Tradition, he is said to be the first Tirthankara (will be named as Padmanabha / Mahapadma) out of 24th Tirthankara of the future cosmic age. He frequently visited Samavasarana of Lord Mahavira seeking answers to his queries. According to Buddhist Tradition, he is also known for his cultural achievements and was a great friend and protector of the Buddha. According to the 7th century Chinese monk Xuanzang, Bimbisara built the city of Rajgir (Rajagriha). He was succeeded on the throne by his son Ajatashatru. Bimbisara was the son of Bhattiya, a chieftain. He ascended to throne at the age of 15 in 543 BCE. He established the Haryanka dynasty and laid the foundations of Magadha with the fortification of a village, which later became the city of Pataliputra. Bimbisara's first capital was at Girivraja (identified with Rajagriha). He led a military campaign against Anga, perhaps to avenge his father's earlier defeat at the hands of its king, Brahmadatta. The campaign was successful, Anga was annexed, and prince Kunika (Ajatashatru) was appointed governor at Champa. His conquest of Anga gave Magadha control over the routes to the Ganges Delta, which had important ports that gave access to the eastern coast of India. Pukkusati, the king of Gandhara, sent Bimbisara an embassy. His court is said to have included Sona Kolivisa, Sumana (flower gatherer), Koliya (minister), Kumbhaghosaka (treasurer) and Jivaka (physician). Bimbisara used marriage alliances to strengthen his position. His first wife was Kosala Devi, the daughter of Mahā Kosala, the king of Kosala, and a sister of Prasenajit.