The Haryanka dynasty played a crucial role in establishing Magadha as a dominant power in ancient India. The establishment of a second capital indicated the growing might and territorial expansion of the kingdom.