King Neco II ruled Egypt from 610-595 BCE. He had a huge impact on Judah because he had killed King Josiah (640-609 BCE) in 609 BCE at Megiddo. King Josiah of Judah was on the Babylonian side of this war against the Egyptians. King Neco then replaced the son of King Josiah, King Jehoahaz or King Shallum of Judah, with his brother King Jehoiakim or King Eliakim (609-598 BCE). King Jehoahaz (609 BCE) was brought back to Egypt, while his brother ruled in Judah. The incident mentioned here took place 4 years later in 605 BCE, in the 4th year of the reign of King Jehoiakim at Carchemish, on the Euphrates River. This is where King Nebuchadnezzar of Babylon defeated King Neco of Egypt.