In 322 BC BCE, Chandragupta Maurya of Magadha founded the Maurya Empire in India and conquered the Macedonian satrapies during the Seleucid–Mauryan war (305–303 BCE).
Nanda Dynasty ruled India at the time when Alexander, the Great was trying to fight with the rulers in the northwest part of India. To be specific, the ruler was Dhannand, the last ruler of this dynasty.
It was Chandragupta Maurya who conquered Magadha defeating the Nandas