When all the kings west of the Jordan River heard about these events,
they joined together to fight Joshua and Israel. (They were the kings in the mountains, the foothills, and along the whole Mediterranean coast as far as Lebanon, the kings of the Hittites, Amorites, Canaanites, Perizzites, Hivites, and Jebusites.)
When the people living in Gibeon heard what Joshua had done to Jericho and Ai,
they devised a scheme. They posed as messengers. They took worn-out sacks on their donkeys. Their wineskins were old, split, and patched.
Their sandals were worn-out and repaired, and their clothes were tattered. All their bread was dried out and crumbling.
They came to Joshua in the camp at Gilgal. They told Joshua and the men of Israel, "We have come from a distant country. Make a treaty with us right now."
The men of Israel said to the Hivites, "What if you're living in this area? We wouldn't be able to make a treaty with you."
They responded to Joshua, "We're at your mercy." Joshua asked them, "Who are you, and where did you come from?"
They answered him, "We came from a country very far away because the LORD your God has become famous. We heard stories about him and everything he did in Egypt.
We also heard everything he did to the two kings of the Amorites east of the Jordan, King Sihon of Heshbon and King Og of Bashan in Ashtaroth.
Our leaders and everyone who lives in our country told us, 'Take what you need for the trip, and go meet them. Tell them, "We're at your mercy. Make a treaty with us right now."'
Our bread was warm when we left home to meet with you. Look at it now! It's dry and crumbling.
These were new wineskins when we filled them. Look at them now! See how they are splitting! Our clothes and sandals are also worn-out because we have come such a long way."
The men believed the evidence they were shown, but they did not ask the LORD about it.
So Joshua made peace with them by making a treaty which allowed them to live. The leaders of the congregation swore to it with an oath.
But three days after the treaty was made, the Israelites heard that these people were their neighbors and lived with them.
The Israelites broke camp. They came to the cities of Gibeon, Chephirah, Beeroth, and Kiriath Jearim two days later.
The Israelites didn't destroy these other people, because the leaders of the congregation had sworn an oath about them to the LORD God of Israel. The whole congregation complained about the leaders.
But all the leaders said to them, "We have sworn an oath about them to the LORD God of Israel, so we cannot touch them now.
We must let them live to avoid [the LORD's] anger because of the oath we swore."
The leaders said that they should be allowed to live. So they became woodcutters and water carriers for the whole congregation, as the leaders had said.
Joshua sent for the people of Gibeon and asked, "Why did you deceive us by saying, 'We live very far away from you,' when you live here with us?
You are under a curse now. You will always be servants. You will be woodcutters and water carriers for the house of my God."
They answered Joshua, "We were told that the LORD your God commanded his servant Moses to give you the whole land and destroy all who live there. We deceived you because we feared for our lives.
Now we're at your mercy. Do to us what you think is good and right."
So Joshua rescued them and did not let the people of Israel kill them.
But that day Joshua made them woodcutters and water carriers for the congregation. They served the LORD's altar, wherever he chose to put it. They still serve today.