Moses says that when Israel goes out to war against an enemy with more horses, chariots and soldiers, it must not be afraid, because the Lord, who brought it out of Egypt, is with it. Before the battle the priest steps forward and urges the people not to lose heart or tremble, because God himself goes with them to fight and give them victory.
The officers then ask who may be released from combat: the man who has built a house and not dedicated it, the man who has planted a vineyard and not eaten from it, the man who is engaged to a woman and has not married her, and the man who is afraid and fainthearted, so that he does not melt the hearts of his brothers. After this the commanders of the army are appointed.
When approaching a distant city, Israel must first offer it peace; if it accepts, its people become subject to forced labor. If not, the city is besieged. In the cities of the nations God is giving as an inheritance, nothing that breathes is to be left alive, otherwise they would teach Israel their abominations. Finally, during a long siege fruit trees are not to be cut down, because the tree of the field is not an enemy; trees that do not bear fruit may be used.