The people of only one city in all the land had made a peace agreement with Israel. They were the Hivites living in Gibeon. All the other cities were defeated in war.