The Laws › Commandment #146
Commandment #146 · Positive · Laws of War

Thy Camp Shall Be Holy: Keeping the Camp Spiritually Pure

שִׁמְרַת הַמַּחֲנֶה
Source: Deuteronomy 23:9  ·  Maimonides, Sefer HaMitzvot, Positive #146

Deuteronomy 23 turns from the battlefield to the camp itself. The moment Israel mobilizes for war, a general principle takes hold: 'keep thee from every wicked thing' (Deuteronomy 23:9). Even something as involuntary as nighttime ritual impurity requires a soldier to leave the camp until evening (Deuteronomy 23:10). The reason is given plainly: 'the LORD thy God walketh in the midst of thy camp... therefore shall thy camp be holy' (Deuteronomy 23:14). Joshua 7 shows what happens when that holiness is broken — after Achan secretly keeps plunder God had forbidden, Israel is defeated at Ai, and God tells Joshua exactly why (Joshua 7:11-13).

Keep Thee from Every Wicked Thing

כִּי תֵצֵא מַחֲנֶה עַל אֹיְבֶיךָ וְנִשְׁמַרְתָּ מִכֹּל דָּבָר רָע
"When the host goeth forth against thine enemies, then keep thee from every wicked thing."
כִּי יִהְיֶה בְךָ אִישׁ אֲשֶׁר לֹא יִהְיֶה טָהוֹר מִקְּרֵה לָיְלָה וְיָצָא אֶל מִחוּץ לַמַּחֲנֶה לֹא יָבֹא אֶל תּוֹךְ הַמַּחֲנֶה
"If there be among you any man, that is not clean by reason of uncleanness that chanceth him by night, then shall he go abroad out of the camp, he shall not come within the camp:"

Deuteronomy 23:9 is placed at the moment of mobilization for a reason: 'When the host goeth forth against thine enemies, then keep thee from every wicked thing.' War does not suspend the moral and ritual law — if anything, the command suggests, it raises the stakes. An army on campaign is not exempt from the standards that govern the camp at rest.

The very next verse gives a concrete example, and it is a striking choice: a man who experiences 'uncleanness that chanceth him by night' — something entirely involuntary, a natural bodily occurrence covered elsewhere in the law (Leviticus 15:16) — 'shall go abroad out of the camp, he shall not come within the camp' until he is clean again (Deut 23:10). If something this ordinary and unintentional requires removal from the camp, the camp's standard of purity is being treated as seriously as the Tabernacle's own.

The LORD Walketh in the Midst of Thy Camp

כִּי יְהוָה אֱלֹהֶיךָ מִתְהַלֵּךְ בְּקֶרֶב מַחֲנֶךָ לְהַצִּילְךָ וְלָתֵת אֹיְבֶיךָ לְפָנֶיךָ וְהָיָה מַחֲנֶיךָ קָדוֹשׁ וְלֹא יִרְאֶה בְךָ עֶרְוַת דָּבָר וְשָׁב מֵאַחֲרֶיךָ
"For the LORD thy God walketh in the midst of thy camp, to deliver thee, and to give up thine enemies before thee; therefore shall thy camp be holy: that he see no unclean thing in thee, and turn away from thee."

Deuteronomy 23:14 supplies the reasoning behind verses 9-10, and its structure is a direct cause-and-effect: 'FOR the LORD thy God walketh in the midst of thy camp, to deliver thee, and to give up thine enemies before thee; THEREFORE shall thy camp be holy.' The holiness requirement is not an arbitrary rule layered on top of military life — it follows directly from who is present. For the duration of the campaign, the camp functions as an extension of sacred space, held to the Tabernacle's own standard: 'that he see no unclean thing in thee, and turn away from thee.'

This connects directly to commandment #145's promise that 'the LORD thy God is with thee' (Deut 20:1) — that presence is not unconditional. Joshua 7 shows the warning of 'turn away from thee' fulfilled almost immediately. After the conquest of Jericho, Achan secretly keeps some of the plunder God had declared 'accursed.' At the very next battle, at Ai, Israel is routed. God's diagnosis to Joshua echoes Deuteronomy 23:14 almost word for word: 'Israel hath sinned... there is an accursed thing in the midst of thee, O Israel: thou canst not stand before thine enemies, until ye take away the accursed thing from among you' (Joshua 7:11-13).

Key Figures

*
Achan
Secretly kept some of the plunder from Jericho that God had declared 'accursed' (Josh 6:18) and hid it 'in the midst of his tent' (Josh 7:21) — a hidden violation of camp purity that brought Israel's next battle, at Ai, to a humiliating defeat before anyone knew why.
+
Joshua
Heard God's diagnosis of Israel's defeat at Ai in terms that echo Deuteronomy 23:14 almost exactly — 'there is an accursed thing in the midst of thee, O Israel: thou canst not stand before thine enemies, until ye take away the accursed thing from among you' (Josh 7:13) — and led the search that uncovered Achan's hidden sin.

Study Questions

For reflection and group study
What does Deuteronomy 23:9 command 'when the host goeth forth against thine enemies'?
What example does Deuteronomy 23:10 give of 'every wicked thing,' and why is it significant that the example is something involuntary?
What reason does Deuteronomy 23:14 give for why 'thy camp shall be holy'?
How does Joshua 7 (Achan) illustrate what Deuteronomy 23:14 warns could happen if the camp is not holy?
How do commandments #145 and #146 work together — what does each one say about God's presence with Israel's army?

Read the full passage on keeping the camp pure in the Torah reader.

Open Deuteronomy 23 in the Torah Reader