1. When all the kings heard [about Jericho and Ai], those who were west of the Jordan in the hill country, in the Judean foothills, and all along the coast of the Mediterranean Sea toward Lebanon-- the Hittites, Amorites, Canaanites, Perizzites, Hivites, and Jebusites--
2. they formed a unified alliance to fight against Joshua and Israel.
3. When the inhabitants of Gibeon heard what Joshua had done to Jericho and Ai,
4. they acted deceptively. They gathered provisions and took worn-out sacks on their donkeys and old wineskins, cracked and mended.
5. [They wore] old, patched sandals on their feet and threadbare clothing on their bodies. Their entire provision of bread was dry and crumbly.
6. They went to Joshua in the camp at Gilgal and said to him and the men of Israel, "We have come from a distant land. Please make a treaty with us."
7. The men of Israel replied to the Hivites, "Perhaps you live among us. How can we make a treaty with you?"
8. They said to Joshua, "We are your servants." Then Joshua asked them, "Who are you and where do you come from?"
9. They replied to him, "Your servants have come from a far away land because of the reputation of the LORD your God. For we have heard of His fame, and all that He did in Egypt,
10. and all that He did to the two Amorite kings beyond the Jordan-- Sihon king of Heshbon and Og king of Bashan, who was in Ashtaroth.
11. So our elders and all the inhabitants of our land told us, 'Take provisions with you for the journey; go and meet them and say, "We are your servants. Please make a treaty with us."'
12. This bread of ours was warm when we took it from our houses as food on the day we left to come to you. But take a look, it is now dry and crumbly.
13. These wineskins were new when we filled them, but look, they are cracked. And these clothes and sandals of ours are worn out from the extremely long journey."
14. Then the men [of Israel] took some of their provisions, but did not seek the LORD's counsel.
15. So Joshua established peace with them and made a treaty to let them live, and the leaders of the community swore an oath to them.
16. Three days after making the treaty with them, they heard that the Gibeonites were their neighbors, living among them.
17. So the Israelites set out and reached the Gibeonite cities on the third day. Now their cities were Gibeon, Chephirah, Beeroth, and Kiriath-jearim.
18. But the Israelites did not attack them, because the leaders of the community had sworn an oath to them by the LORD, the God of Israel. Then the whole community grumbled against the leaders.
19. All the leaders answered them, "We have sworn an oath to them by the LORD, the God of Israel, and now we cannot touch them.
20. This is how we will treat them: we will let them live, so that no wrath will fall on us because of the oath we swore to them."
21. They also said, "Let them live." So the Gibeonites became woodcutters and water carriers for the whole community, as the leaders had promised them.
22. Joshua summoned the Gibeonites and said to them, "Why did you deceive us by telling us you live far away from us, when in fact you live among us?
23. Therefore you are cursed and will always be slaves-- woodcutters and water carriers for the house of my God."
24. The Gibeonites answered him, "It was clearly reported to your servants that the LORD your God had commanded His servant Moses to give you all the land and to destroy all the inhabitants of the land before you. We greatly feared for our lives because of you, and that is why we did this.
25. Now we are in your hands. Do to us whatever you think is right."
26. This is what Joshua did to them: he delivered them from the hands of the Israelites, and they did not kill them.
27. On that day he made them woodcutters and water carriers-- as they are today-- for the community and for the LORD's altar at the place He would choose.