So these five Amorite kings (the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon) and their armies gathered and set off. They surrounded Gibeon and then began their attack.
At that time the king of Babylon's army was attacking the city and the Judean towns of Lachish and Azekah. These were the only fortified cities that had not yet been conquered in Judah.
The Amalekites live in the Negev. The Hittites, Jebusites, and the Amorites live in the hill country. The Canaanites live on the sea coast and also beside the Jordan.”
The Gibeonites sent a message to Joshua at the camp in Gilgal, saying, “Please don't abandon us, your servants! Come quickly and save us! We need your help for all the Amorite kings of the hill country have joined in attacking us.”
The towns the Philistines had taken from Israel were restored to Israel, all the way from Ekron to Gath, and Israel also liberated the neighboring territory from the hands of the Philistines. There was also peace between Israel and the Amorites.