Not a single town made peace with the Israelites except the Hivites, the inhabitants of Gibeon. All the rest were conquered in battle.
Joshua fought a long war with all these kings.
They are: the five rulers of the Philistines, all the Canaanites, the Sidonians, and the Hivites living in the mountains of Lebanon from Mount Baal-hermon to Lebo-hamath.