The Nanda dynasty ruled in northern part of the Indian subcontinent during the 4th century BCE, and possibly during the 5th century BCE. In 326 BC, Alexander invaded India, after crossing the river Indus he advanced towards Taxila.
The Pala ruler ‘Devapala’ was succeeded by Vigrahapala. Vigrahapala ruled for about 3 or 4 years after that, he abdicated his throne and began to live the life of an ascetic.