Bible Notes Online - Joshua 12 - ESV
Commentary

By this point, the land had been given over to Israel, the main enemies having been defeated. But there remained some parts of the land to be occupied, that the fullness of God's blessing might be enjoyed.

v1-6: Territory occupied under Moses; this land was given to the 2½ tribes by Moses.Joshua honoured that decision.

v7-24: The list of 31 kings defeated by Joshua.