Only one city in all the land made a peace agreement with Israel. That was the Hivite city of Gibeon. All the other cities were defeated in war.
Joshua fought against them for many years.
the five rulers of the Philistines, all the Canaanites, the people of Sidon, and the Hivites who lived in the Lebanon mountains from Mount Baal Hermon to Lebo Hamath.