The purposes for which God allowed the Canaanites to live among the Israelites were four. He wanted to punish Israel for her apostasy (2:3), and He wanted to test the Israelites' faithfulness to and love for Himself (2:22; 3:4). He also wanted to give the new generation of Israelites experience in warfare (3:2), namely, how to conduct war (by depending on Yahweh), not just how to fight. Furthermore, God allowed some Canaanites to remain in the land so it would not become wild before the Israelites could subdue it completely (Deut. 7:20-24).
Even though the Israelites had defeated some of the Canaanites in various battles during Joshua's day, significant groups within the Canaanite tribes remained in the land (vv. 3, 5).56The Sidonians (v. 3) were the Phoenicians, Sidon being Phoenicia's chief port until about 1100 B.C. when Tyre began to eclipse it.57These enemies (v. 5) represented the whole of Canaan: the Philistines on the southwest, the Sidonians on the northwest, the Hivites on the northeast, and the Canaanites on the southeast. The Israelites then proceeded to marry and worship with them (v. 6). From "the people served the Lord"(2:7) they had degenerated to the point that they "served their gods"(3:6).
"In these two verses [5-6] the narrator announces the theme of the book: the Canaanization of Israelite society."58
"The Israelites descended three steps in their cultural accommodation to paganism: (a) they lived among the Canaanites, (b) they intermarried with them, and (c) they served their gods. Each step is a natural one leading on to the next."59