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.