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.