Was Josiah's marching out against the king of Egypt a sin?
The question regarding King Josiah’s final action is indeed not an easy one. On the one hand, Josiah is presented in Scripture as one of the most godly kings of Judah. On the other hand, his death at Megiddo is described in such a way that it is difficult not to see a serious mistake in it. Therefore, the most accurate answer would be this: yes, his marching out against Pharaoh Necho of Egypt was a sinful misstep, because he did not listen to a warning that Scripture directly describes as a word “from the mouth of God.”
Josiah was a righteous king, but that did not make him infallible
It is important to start with the overall biblical testimony about Josiah. He was no ordinary king. He sought the Lord, purged the land of idols, repaired the temple, and took care to read the law and renew the covenant. Scripture speaks of him in remarkably high terms:
“Before him there was no king like him, who turned to the Lord with all his heart and with all his soul and with all his might, according to all the Law of Moses, nor did any like him arise after him” (2 Kings 23:25).
This is a crucial backdrop. The Bible does not portray Josiah as a proud, wicked man. On the contrary, he was a person of profound devotion to God. Yet this is precisely why his end is especially sobering: even a sincere believer can, in a specific moment, act contrary to God’s will.
Scripture honestly displays not only the victories of God’s people, but also their failures. This makes the biblical narrative especially trustworthy and helpful for us.
What happened at Megiddo
The event is recorded in 2 Chronicles 35. Pharaoh Necho was marching north to wage war at the Euphrates and, by his own account, had no intention of attacking Judah. He sent messengers to Josiah with a warning:
“What have we to do with each other, king of Judah? I am not coming against you this day, but against the house with which I am at war. And God has commanded me to hurry. Cease opposing God, who is with me, lest he destroy you” (2 Chronicles 35:21).
Then follows the key statement:
“Nevertheless, Josiah did not turn away from him, but disguised himself in order to fight with him. He did not listen to the words of Necho from the mouth of God, but came to fight in the plain of Megiddo” (2 Chronicles 35:22).
It is this verse that answers your question. The issue was not merely bad foreign policy, nor was it simply a military miscalculation. The author of Chronicles highlights the spiritual dimension: Josiah did not listen to the words that were from the mouth of God. That is where his sin lay.
Why this can be called a sin, not just a mistake
Sometimes people ask: could it be that Josiah simply misread the situation? Yet the biblical text goes beyond a typical evaluation of circumstances. It speaks of opposing God. Necho warns: “Cease opposing God” (2 Chronicles 35:21). And then the author confirms that Necho’s words indeed came from God.
Here we see several marks of a sinful act.
First, Josiah meddled where God had not sent him. Not every battle that seems just or strategically important is a divine assignment.
Second, he failed to discern God’s warning. This was especially serious for a king who had previously demonstrated such sensitivity to the law of the Lord.
Third, he pressed forward despite a clear caution. Furthermore, the text says that he “disguised himself” (2 Chronicles 35:22), as though knowingly taking a reckless risk, unwilling to back down.
Therefore, it is appropriate to speak here not merely of a tactical blunder, but precisely of disobedience.
Why God could speak through a pagan king
For some, the hardest thing to accept is this: how could God speak through an Egyptian pharaoh? Yet in the Bible, this is not a unique case. The Lord is sovereign and can use anyone to accomplish His will and even to deliver a warning.
For instance, God called Nebuchadnezzar His servant and instrument of judgment (Jeremiah 25:9), and King Cyrus His anointed for a specific historical mission (Isaiah 45:1). This does not mean that all pagan rulers were righteous, but it does mean that God is completely free in how He acts.
This is why Josiah needed to be especially watchful. Sometimes the Lord speaks to us outside of familiar and expected channels. And trouble begins when we think: “Since this was said by the wrong person, there is no need to listen.” The Bible teaches greater spiritual sobriety.
Does this action undo all of Josiah’s faithfulness?
No, it does not. Josiah remains one of Judah’s finest kings. His life was marked by a genuine pursuit of the Lord, and Scripture clearly affirms this. However, his end reminds us that a good past does not guarantee a right decision in the present.
Even a mature believer can stumble if they begin to act out of their own convictions without pausing before God. Sometimes we can be so convinced of our own rightness that we fail to notice we are no longer listening to the Lord.
There is another important nuance. Earlier, the prophetess Huldah had told Josiah that because of his humility, he would be gathered to his grave in peace and would not see the coming disaster upon Judah (2 Kings 22:19–20). And indeed, he died before the final fall of Jerusalem. But the fact that God, in His mercy, preserved his place among the faithful does not make his final step right. In Scripture, God’s grace and human responsibility do not contradict one another.
What lesson does this offer us today?
The story of Josiah is very personal and sobering. It teaches us that zeal in itself is not the same as obedience. One can sincerely desire good, defend a worthy cause, and yet still go where God is not calling.
At times, spiritual maturity is demonstrated not by boldly charging into battle, but by humbly stopping. Not every form of resistance is faith. Not every bold resolve is obedience. Sometimes the hardest and holiest choice is to step back, because the Lord at that moment is working differently than we imagine.
In Josiah’s case, the tragedy was that a man who had responded so rightly to God’s word so many times failed to listen to it at a decisive moment.
In conclusion, we can say this: yes, Josiah’s marching out against the king of Egypt was a sinful act, because he did not listen to the warning that came from God, and he went into a battle to which he was not called. Yet this failure does not erase his lifetime of faith. It simply reminds us that even the most godly people need continual humility and attentiveness to the voice of the Lord.
Practically, this means a simple thing for us: before making an important decision, we should ask not only, “Is this a worthy cause?”, but also, “Is God truly calling me into this right now?” It is wise to pause in prayer, examine our hearts, seek counsel from spiritually mature people, and be ready to hear God’s “do not go,” even when we strongly want to press forward.