Yahweh defeating the enemies of the people of Israel is spoken of as if Yahweh were a warrior who would fight along with the people of Israel. Israel's conquering of the Promised Land was unique in history because it was a type of holy war and had special rules. This war was really Yahweh's punishment against the sin of the Canaanite people. If the people were not completely destroyed, they would cause Israel to sin.