As we read Deuteronomy we are reminded of just how devoted God is to his people. And it is because of his love and devotion to them that He disciplines them. As the Lord led Israel through the wilderness He was testing them and teaching them in order that He might prepare them to live faithfully in the promise land.
God commands Israel to go to war with the 7 nations who are occupying the Promise Land. These people are seen as trespassers in the eyes of the Lord for He had promised to give this land to Israel. These enemies Israel would face were more numerous and powerful than Israel. But that was not to be a cause for concern or worry. God would honor his covenant promises and give his people strength for victory to take possession of the promise land.