Egypt, Assyria's ally, continued the war against Babylon for a few years before being decisively defeated by Nabopolassar's crown prince Nebuchadnezzar at Carchemish in 605 BC.