After making peace with the Hivites, they went to lay siege to Gibeon. The Gibeonites sent a message to Joshua saying he needs to save the people of Gibeon. So, God killed many of the Amorites by making large hailstones. Then Joshua made the sun stay over Gibeon, and the moon over Ajalon. Joshua later got very old and died.