2 they formed an alliance to fight against Joshua and Israel.
3 When the residents of Gibeon heard what Joshua did to Jericho and Ai,
4 they did something clever. They collected some provisions and put worn-out sacks on their donkeys, along with worn-out wineskins that were ripped and patched.
5 They had worn-out, patched sandals on their feet and dressed in worn-out clothes. All their bread was dry and hard.
6 They came to Joshua at the camp in Gilgal and said to him and the men of Israel, “We have come from a distant land. Make a treaty with us.”
7 The men of Israel said to the Hivites, “Perhaps you live near us. So how can we make a treaty with you?”
8 But they said to Joshua, “We are willing to be your subjects.” So Joshua said to them, “Who are you and where do you come from?”