 When Joshua learns of the trickery, he curses the Gibeonites (Joshua 9).When the king of Jerusalem hears of the treaty, he and several other kings attack Gibeon, who then call on Joshua for help.God attacks Joshua's enemies with hailstones, the Israelites are victorious, and the enemy kings are captured.