Deuteronomy 20:16-18

16 But as for the towns of these peoples that the Lord your God is giving you as an inheritance, you must not let anything that breathes remain alive.
17 You shall annihilate them—the Hittites and the Amorites, the Canaanites and the Perizzites, the Hivites and the Jebusites—just as the Lord your God has commanded,
18 so that they may not teach you to do all the abhorrent things that they do for their gods, and you thus sin against the Lord your God.

Deuteronomy 20:16-18 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.

New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.