When the kings west of the Jordan hear what happened at Jericho and Ai, they gather to fight Joshua and Israel. But the people of Gibeon, hearing the same news, resort to cunning. They pose as messengers from a far country: they load their donkeys with worn sacks and torn, patched wineskins, put on worn sandals and old clothes, and take dry, moldy bread. They come to the camp at Gilgal and ask the men of Israel to make a treaty with them.
The Israelites suspect they might live nearby. The Gibeonites declare themselves servants of Israel and say they have come from a very distant land because of the fame of the Lord and what he did in Egypt and to the Amorite kings across the Jordan. They show the dry bread and the wineskins, and the men of Israel take some of their provisions but do not ask the Lord. Joshua makes peace with them and lets them live, and the leaders of the congregation swear an oath to them.
Three days later they learn that these are neighbors who live nearby, with cities such as Gibeon, Chephirah, Beeroth and Kiriath-jearim. The Israelites reach those cities but do not attack them, because of the oath made in the name of the Lord, though the congregation grumbles against the leaders. The leaders insist they cannot touch them and decide that they will be woodcutters and water carriers for the whole congregation. Joshua calls the Gibeonites and rebukes them for the deception. They answer that they knew the Lord had commanded Moses to give Israel the land, and they greatly feared for their lives. Joshua rescues them from death and assigns them to be woodcutters and water carriers for the altar of the Lord at the place he would choose.