the Canaanites were full of iniquity and wickedness, and God speaks of the land vomiting them out for this reason (cf. Gen. 15:6; Lev. 18:24-30; Deut. 9:5). All of this is consistent with the fact that God “avenges the blood of his children and takes vengeance on his adversaries. He repays those who hate him and cleanses his people’s land” (Deut. 32:43).
It’s also important to note Deut. 9:5, which says that Israel’s possession of the land and the Canaanites’ being kicked out would not be due to Israel’s righteousness, but would rather be on account of the Canaanites’ wickedness. God very pointedly tells Israel that if they do not follow the Lord and his law, then they will suffer the same fate as the nations being vomited out of their land (cf. Lev. 18:28; Deut. 28:25-68; cf. also Ex. 22:20; Josh. 7:11-12; Mal. 4:6). God gave his special electing love to Israel (cf. Deut. 7:6-9), but his threats and promises of punishment for unfaithfulness show his fairness and his commitment to justice.
5. God’s actions were not an example of ethnic cleansing.
The Pentateuch (Genesis–Deuteronomy) provides laws for two types of warfare: (1) battles fought against cities outside the Promise Land (see Deut. 20:10–15), and (2) battles fought against cities within the Promised Land (Deut. 20:16–18). The first type allowed for Israel to spare people; the second type did not. This herem practice (the second type of warfare) meant “devotion/consecration to destruction.” As a sacred act fulfilling divine judgment, it is outside our own categories for thinking about warfare. Even though the destruction is commanded in terms of totality, there seems to have been an exception for those who repented, turning to the one true and living God (e.g., Rahab and her family [Josh. 2:9], and the Gibeonites [Josh. 11:19]). What this means is that the reason for the destruction of God’s wicked enemies was precisely because of their rebellion and according to God’s special purposes—not because of their ethnicity. “Ethnic cleansing” and genocide refer to destruction of a people due to their ethnicity, and therefore this would be an inappropriate category for the destruction of the Canaanites.
6. Why was it necessary to remove the Canaanites from the land?
In America we talk about the separation of “church” and “state.” But Israel was a “theocracy,” where church and state were inseparably joined and indistinguishable, such that members of God’s people had both political and religious obligations. To be a citizen of Israel required being faithful to God’s covenant and vice-versa.
The covenant community demanded purity, and egregious violations meant removal (e.g., see Deut. 13:5; 17:7, etc). This also entailed the purity of the land in which they were living as God’s people, and failure to remove the unrepentant from the land meant that the entire nation would be pulled down with the rebellious, resulting in idolatry, injustice, and evil (e.g., Deut. 7:4; 12:29-31)—which sadly proved to be the case all too often under the old covenant.
Christians today are not in a theocracy. We are “sojourners and exiles” (1 Pet. 2:11) with no sacred land in this age. We live in the overlap of the old age and the age to come—“between two places” (in the creation that groans—after the holy-but-temporary Promised Land and awaiting the holy-and-permanent New Heavens and the New Earth). In this age and place we are to respect and submit to the governing authorities placed over us by God (Rom. 13:1–5)—but they are not, and should not be, a part of the church (God’s people called and gathered for Word and sacrament). Furthermore, God’s gift of specific, special revelation to the whole church has now ended (cf. Heb. 1:1–2: “Long ago, at many times and in many ways, God spoke to our fathers by the prophets, but in these last days he has spoken to us by his Son”). These factors combine to ensure that nothing like the destruction of the Canaanites—required for the theocracy of Israel to possess the physical land—is commissioned by God or is permissible for his people today.
7. The destruction of the Canaanites is a picture of the final judgment.
At the end of the age, Christ will come to judge the living and the dead (Acts 10:42; 2 Tim. 4:1; 1 Pet. 4:5), expelling them from the land (the whole earth). That judgment will be just, and it will be complete. That is the day “the Lord Jesus [will be] revealed from heaven with his mighty angels in flaming fire, inflicting vengeance on those who do not know God and on those who do not obey the gospel of our Lord Jesus. They will suffer the punishment of eternal destruction, away from the presence of the Lord and from the glory of his might (2 Thess. 1:8–9). Amazingly enough, Paul asks the Corinthians something they seem to have forgotten, if they once knew it: “Do you not know that the saints will judge the world? (1 Cor. 6:2).
How does this work? What will it look like? I really don’t know. But God’s Word tells us that God’s people will be part of God’s judgment against God’s enemies. In that way, God’s command of the Israelites to carry out his moral judgment against the Canaanites becomes a foreshadowing—a preview, if you will—of the final judgment.
Read in this light, the terrible destruction recorded on the pages of Joshua in God’s Holy Word become not a “problem to solve,” but a wake-up call to all of us—to remain “pure and undefiled before God” (James 1:27), seeking him and his ways, and to faithfully share the gospel with our unbelieving neighbors and the unreached nations. Like Job, we must ultimately refrain from calling God’s goodness and justice into question, putting a hand over our mouth (Job 40:4) and marveling instead at the richness and the mystery of God’s great inscrutable mercy (Eph. 2:4). At the end of the day we will join Moses and the Lamb in singing this song of praise:
“Great and amazing are your deeds,
O Lord God the Almighty!
Just and true are your ways,
O King of the nations!
Who will not fear, O Lord,
and glorify your name?
For you alone are holy.
All nations will come
and worship you,
for your righteous acts have been revealed.” (Rev. 15:3-4)
Thanks to David Reimer, James Grant, Andy Naselli, and Jim Hamilton for reading a draft of this answer and offering counsel and encouragement. I also want to acknowledge the discussion in the Introduction to the book of Joshua in the ESV Study Bible, which was very helpful in thinking through this issue.