In the beginning the order of monks (Sangha) did not have any monasteries, but already in its first year the Buddha allowed these to be given, after being asked to do so by King Bimbisara.
Ajatsatru occupied the throne by imprisoning his father, the king Bimbisara.
According to the Puranas, the second ruling dynasty was the Shaishunga dynasty, but an earlier authority, Ashvagosha in his Buddhacharita refers to Bimbisara, who is mentioned as a ruler of the Shaishunaga dynasty in the Puranas, as a scion of the Haryanka-kula.