17-18 The territory extended from Mount Halak in the south near Edom, as far as Baalgad in the north, in the valley of Lebanon south of Mount Hermon. Joshua was at war with the kings of this territory for a long time, but he captured them all and put them to death.
19 The only city that made peace with the people of Israel was Gibeon, where some of the Hivites lived. All the others were conquered in battle.
20 The Lord had made them determined to fight the Israelites, so that they would be condemned to total destruction and all be killed without mercy. This was what the Lord had commanded Moses.
21 At this time Joshua went and destroyed the race of giants called the Anakim who lived in the hill country — in Hebron, Debir, Anab, and in all the hill country of Judah and Israel. Joshua completely destroyed them and their cities.
22 None of the Anakim were left in the land of Israel; a few, however, were left in Gaza, Gath, and Ashdod.
23 Joshua captured the whole land, as the Lord had commanded Moses. Joshua gave it to the Israelites as their own and divided it into portions, one for each tribe.So the people rested from war.