However, after the Egyptians were defeated by the Babylonians at the battle of Carchemish in 605 BC, Nebuchadnezzar II besieged Jerusalem, and Jehoiakim changed allegiances to avoid the destruction of Jerusalem. He paid tribute from the treasury in Jerusalem, some temple artifacts, and handed over some of the royal family and nobility as hostages.[1]