Deuteronomy 20:14-20

14 You may, however, take for yourselves the women, the children, the livestock, and everything else in the city. You may use everything that belongs to your enemies. The Lord has given it to you.
15 That is how you are to deal with those cities that are far away from the land you will settle in.
16 "But when you capture cities in the land that the Lord your God is giving you, kill everyone.
17 Completely destroy all the people: the Hittites, the Amorites, the Canaanites, the Perizzites, the Hivites, and the Jebusites, as the Lord ordered you to do.
18 Kill them, so that they will not make you sin against the Lord by teaching you to do all the disgusting things that they do in the worship of their gods.
19 "When you are trying to capture a city, do not cut down its fruit trees, even though the siege lasts a long time. Eat the fruit, but do not destroy the trees; the trees are not your enemies.
20 You may cut down the other trees and use them in the siege mounds until the city is captured.

Deuteronomy 20:14-20 Meaning and Commentary

INTRODUCTION TO DEUTERONOMY 20

In this chapter rules are given to be observed in times of war. When a battle was near, a priest was to address the soldiers, and encourage them to fight, De 20:1-4, then the officers were to declare who might return home, De 20:5-9 when an enemy's city was approached, peace was to be proclaimed on certain conditions, which, if accepted of, the inhabitants were to be tributaries and servants, but if not, when taken, all were to be put to the sword, excepting women, children, and cattle, De 20:10-15, but those of the seven nations were to be utterly destroyed, De 20:16-18, and, during a siege, no trees bearing fruit fit for food were to be cut down, De 20:19.

Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.