they came together to wage war against Joshua and Israel.
Hitherto the Canaanites had acted defensively; the Israelites were the aggressors upon Jericho and Ai. But here the kings of Canaan are in consultation to attack Israel, and concert matters for a vigorous effort of their united forces to check the progress of their victorious arms. Now, 1. It was strange they did not do this sooner.
Commenting on Joshua 9:1-2
That they gathered themselves together to fight with Joshua, and with Israel,.... Not at this time, but they met together to consult what was proper to be done in order to secure themselves, and their people, and put a stop to the successes of the arms of Israel; and for this purpose entered into alliances with each other to assist one another, or at a...
they gathered themselves together, to fight with Joshua and with Israel, with one accord--Although divided by separate interests and often at war with each other, a sense of common danger prompted them to suspend their mutual animosities, that by their united forces they might prevent the land from falling into the hands of foreign masters.