While Josiah was king, Pharaoh Neco, king of Egypt, went to the Euphrates River to help the king of Assyria. King Josiah and his army marched out to fight him, but King Neco killed him when they met at Megiddo.
References for 2 Kings 23:29
Josiah’s officers took his body back in a chariot from Megiddo to Jerusalem and buried him in his own tomb. Then the people of the land anointed Josiah’s son Jehoahaz and made him the next king.