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.
King Adoni Zedek of Jerusalem heard that Joshua had captured Ai and claimed it for the LORD the same way he had destroyed Jericho and its king. He also heard that the people of Gibeon had made peace with the people of Israel and were living with them.
He and his people were terribly afraid because Gibeon was a large city. It was like one of the royal cities, larger than Ai. All its men were warriors.
So King Adoni Zedek of Jerusalem sent [this message] to King Hoham of Hebron, King Piram of Jarmuth, King Japhia of Lachish, and King Debir of Eglon:
"Come, help me destroy Gibeon because it has made peace with Joshua and the people of Israel."
So the five Amorite kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon combined their armies. They marched to Gibeon, camped there, and attacked it.
The men of Gibeon sent this message to Joshua at the camp in Gilgal: "Don't abandon us! Come quickly, and save us. Help us because all the Amorite kings who live in the mountains have united against us."
So Joshua, with all his soldiers and best warriors, set out from Gilgal.
The LORD told Joshua, "Don't be afraid of them. I have handed them over to you. None of them can stand up to you."
So Joshua marched all night from Gilgal and took them by surprise.
The LORD threw the enemy into disorder in front of Israel and defeated them decisively at Gibeon. He chased them along the road that goes to the slope of Beth Horon and continued to defeat them all the way to Azekah and Makkedah.
As they fled from the Israelites down the slope of Beth Horon toward Azekah, the LORD threw huge hailstones on them. More died from the hailstones than from Israelite swords.
The day the LORD handed the Amorites over to the people of Israel, Joshua spoke to the LORD while Israel was watching, "Sun, stand still over Gibeon, and moon, stand still over the valley of Aijalon!"
The sun stood still, and the moon stopped until a nation got revenge on its enemies. Isn't this recorded in the Book of Jashar? The sun stopped in the middle of the sky, and for nearly a day the sun was in no hurry to set.
Never before or after this day was there anything like it. The LORD did what a man told him to do, because the LORD fought for Israel.
Then Joshua and all Israel returned to the camp at Gilgal.
The five kings ran away and hid in the cave at Makkedah.
Someone told Joshua, "The five kings have been found. They are hiding in the cave at Makkedah."
Joshua replied, "Roll large stones against the mouth of the cave, and post a guard there.
But don't stop. Chase your enemies! Cut off their rear guard. Don't let them get back into their own cities, because the LORD your God has handed them over to you."
Joshua and the Israelites defeated them decisively, almost destroying them. But some who survived got back into the fortified cities.
Then the whole army returned safely to Joshua in the camp at Makkedah. Not a single person dared to speak against any of the Israelites.
Joshua said, "Open the cave, and bring me the five kings!"
So they brought him the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon.
When they brought them to Joshua, he called for all the men of Israel. He told the officers who had gone with him, "Come forward and put your feet on the necks of these kings." So that's what they did.
Joshua told them, "Don't be afraid or terrified! Be strong and courageous, because this is what the LORD will do to all the enemies you're fighting against."
After this, Joshua put them to death and hung their bodies on five poles until evening.
When the sun went down, Joshua gave the order to take them down from the poles. Then they threw them into the cave where they had been hiding and put large stones over the mouth of the cave. These stones are still there today.
That same day Joshua captured Makkedah, and the Israelites killed its people and king with swords. He claimed them for the LORD by destroying them. There were no survivors. He did the same thing to the king of Makkedah that he had done to the king of Jericho.
Joshua and all Israel marched from Makkedah to Libnah and attacked it.
The LORD also handed Libnah and its king over to Israel. He killed all the people. There were no survivors. He did the same thing to the king of Libnah that he had done to the king of Jericho.
Joshua and all Israel marched from Libnah to Lachish, camped there, and attacked it.
The LORD handed Lachish over to Israel. He captured it on the next day and killed all the people, the same way he had captured Libnah.
At that time King Horam of Gezer had come to help Lachish. But Joshua killed him and his troops. There were no survivors.
Joshua and all Israel marched from Lachish to Eglon, camped there, and attacked it.
They captured it that day and killed everyone in it. He claimed it for the LORD by destroying it the same way he had destroyed Lachish.
Then Joshua and all Israel marched from Eglon to Hebron and attacked it.
They captured it and its neighboring villages and killed its king and all the people. There were no survivors, the same as at Eglon. He claimed the city and all its people for the LORD by destroying them.
Then Joshua and all Israel went back to Debir and attacked it.
He captured it and its king and all its neighboring villages and killed everyone. So they claimed them all for the LORD by destroying them. There were no survivors. He did the same thing to Debir and its king that he had done to Hebron and Libnah and their kings.
So Joshua captured the whole land--the mountains, the Negev, the foothills, and the slopes. There were no survivors. He claimed every living creature for the LORD by destroying it, as the LORD God of Israel had commanded.
So Joshua defeated the people from Kadesh Barnea to Gaza and from all the country of Goshen as far as Gibeon.
Joshua captured all these kings and their territories in one campaign because the LORD God of Israel fought for Israel.
Then Joshua and all Israel returned to the camp at Gilgal.
King Jabin of Hazor heard [what had happened]. So he sent messengers to King Jobab of Madon and to the kings of Shimron and Achshaph.
He also sent messengers to the northern kings in the mountains, the plains south of Chinneroth, the foothills, and Naphoth Dor in the west,
the Canaanites from east and west, the Amorites, Hittites, Perizzites, the Jebusites in the mountains, and the Hivites at the foot of Mount Hermon in Mizpah.
They came out with all their armies. Their troops were as numerous as the grains of sand on the seashore. They also had horses and chariots.
All these kings camped together by the Springs of Merom in order to fight Israel.
The LORD told Joshua, "Don't be afraid of them because I am going to give them to Israel. About this time tomorrow they will all be dead. You must disable their horses so that they cannot be used in battle. You must burn their chariots."
Joshua and all his troops arrived suddenly at the Springs of Merom and attacked the Canaanite armies.
The LORD handed them over to Israel, and the Israelites defeated them. The Israelites chased them as far as Great Sidon, Misrephoth Maim, and the valley of Mizpah in the east. There were no survivors.
Joshua disabled their horses and burned their chariots, as the LORD had told him.
Then Joshua turned back and captured Hazor. He killed its king with a sword. (Hazor was formerly the head of all these kingdoms.)
They claimed everyone for the LORD by destroying them with swords. Not one person survived. Joshua also burned Hazor.
So Joshua captured all these cities and their kings. He claimed them for the LORD by destroying them, as the LORD's servant Moses had commanded him.
Israel did not burn cities built on mounds. However, Joshua made an exception and burned Hazor.
The people of Israel took all the loot and livestock from these cities. But they put everyone to death until they were all destroyed. Not one person survived.
So Joshua carried out what the LORD had commanded his servant Moses and what Moses had commanded him. He did not leave out anything the LORD had commanded Moses.
Joshua took all this land, the mountains, all the Negev, all the land of Goshen, the foothills, the plains, and the mountains and foothills of Israel.
The land extended from Mount Halak which ascends to Seir as far as Baal Gad in the Lebanon Valley at the foot of Mount Hermon. He captured all their kings and killed them.
Joshua waged war with all these kings for a long time.
Not one city had made a peace treaty with the people of Israel except Gibeon, where the Hivites lived. Israel captured everything in battle.
The LORD made their enemies stubborn enough to continue fighting against Israel so that he could claim them all for destruction without mercy, as he had commanded Moses.
At that time Joshua also wiped out the people of Anak in the mountains, in Hebron, Debir, and Anab, and in all the hills of Judah and Israel. Joshua claimed them for the LORD by destroying them and their cities.
None of the people of Anak remained in Israel. Some of them were left in Gaza, Gath, and Ashdod.
Joshua captured the whole land as the LORD had promised Moses. He gave it to Israel as a possession, dividing it among the tribes. So the land had peace.