After all this, when Josiah had prepared the temple, Necho king of Egypt came up to fight against Carchemish by the Euphrates; and Josiah went out against him.
But he sent messengers to him, saying, "What have I to do with you, king of Judah? I have not come against you this day, but against the house with which I have war; for God commanded me to make haste. Refrain from meddling with God, who is with me, lest He destroy you."
Nevertheless Josiah would not turn his face from him, but disguised himself so that he might fight with him, and did not heed the words of Necho from the mouth of God. So he came to fight in the Valley of Megiddo.
And the archers shot King Josiah; and the king said to his servants, "Take me away, for I am severely wounded."
His servants therefore took him out of that chariot and put him in the second chariot that he had, and they brought him to Jerusalem. So he died, and was buried in one of the tombs of his fathers. And all Judah and Jerusalem mourned for Josiah.