In 605 BC
Nebuchadnezzar II, king of
Babylon defeated
Pharaoh Necho at the
Battle of Carchemish, and subsequently invaded
Judah. To avoid the destruction of Jerusalem, King
Jehoiakim of Judah, in his third year, changed allegiances from Egypt to Babylon. He paid tribute from the treasury in Jerusalem, some temple artifacts, and some of the royal family and nobility as hostages. In 601 BC, during the fourth year of his reign, Nebuchadnezzar unsuccessfully attempted to invade
Egypt and was repulsed with heavy losses. This failure led to numerous rebellions among the states of the
Levant which owed allegiance to Babylon, including
Judah, where king Jehoiakim stopped paying tribute to Nebuchadnezzar and took a pro-Egyptian position.