Next the kings of the Amorites - Jerusalem, Hebron, Jarmuth, Lachish and Eglon joined forces to attack Gibeon which were now an integrated people with Israel having made a mutual peace treaty. So the Gibeonites sent to ask help from Joshua who sent his entire army in response, and they won a resounding victory. As the defeated army fled God sent a storm of hailstones on them which killed more than with the sword! And Joshua asked God to make the sun and moon stand still so as to prolong the day for Israel to finish off their enemy, and this is what happened. (The text says that this was a citation from the Book of Jashar which makes things a little unclear)
In view of their defeat the 5 kings went and hid in a cave where Joshua trapped them with rocks before killing them and hanging them on trees. Then the Israelites went on to defeat all the southern cities of Canaan at Makkedah, Libnah, Lachish, Gezer, Eglon, Hebron and Debir subduing everything from Kadesh Barnea to Gaza and the whole region of Goshen to Gibeon. Everywhere they conquered the Israelites were ruthless leaving no survivors and destroying all who breathed as God had commanded.