In Josiah's days Pharaoh Necoh (the king of Egypt) came to help the king of Assyria at the Euphrates River. King Josiah went to attack Necoh. When Pharaoh saw him at Megiddo, Pharaoh killed him.
His officers put his dead body in a chariot and brought it from Megiddo to Jerusalem. They buried Josiah in his tomb. Then the people of the land took Josiah's son Jehoahaz, anointed him, and made him king in place of his father.