Second Kings 23 and 2 Chronicles 35-36 describe Pharaoh Necho marching north toward the Euphrates.
Josiah confronted him at Megiddo and was mortally wounded. Necho later deposed Josiah's son Jehoahaz, imposed tribute on Judah, and installed Eliakim, renaming him
Jehoiakim.
Jeremiah 46 records that Necho's army was defeated by Nebuchadnezzar of Babylon at Carchemish in Jehoiakim's fourth year.