There was not a city that made peace with Bnei-Yisrael except the Hivites who inhabited Gibeon. All the rest they took in battle.
For a long time Joshua made war with all those kings.
These nations included the five Philistine lords, and all the Canaanites, Zidonians and the Hivites living in the hill country of Lebanon from Mount Baal-hermon to the entrance of Hamath.