And it came to pass, when all the kings - heard thereof - From this account it appears that the capture and destruction of Jericho and Ai had been heard of to the remotest parts of the land, that a general fear of the Israelitish arms prevailed, and that the different dynasties or petty governments into which the land was divided, felt all their interests at stake, and determined to make the defense of their country a common cause. This was the most prudent step they could take in their circumstances, and therefore they entered into a confederation in order to arrest the progress of the Israelites. The Great Sea mentioned here is the Mediterranean Sea, the coasts of which were inhabited by the Phoenicians, Syrians, Sidonians, and Philistines. It is very likely that all these united with the Canaanites for their common safety.
In the hills - See the Numbers 13:17 note.
The valleys - Or “the vale” (the Shephelah, Deuteronomy 1:7), which imports the lowland country between the mountains and the sea coast.