Joshua captured all these kings and their land in a single campaign, because Yahweh, the God of Israel, was fighting for Israel.
In context
40So Joshua struck the whole region — the hill country, the Negev, the lowlands, and the slopes — with all their kings, leaving no survivor. He devoted to destruction everything that breathed, just as Yahweh, the God of Israel, had commanded. 41Joshua struck them down from Kadesh-barnea to Gaza, and the whole region of Goshen, as far as Gibeon. 42Joshua captured all these kings and their land in a single campaign, because Yahweh, the God of Israel, was fighting for Israel. 43Then Joshua, and all Israel with him, returned to the camp at Gilgal.