The enemy that Israel faced in this land was not one unified nation but was occupied by the Hittites, Jebusites, Amorites, etc., who had been repeatedly warned by God over hundreds of years (
Genesis 15:16-21) to repent of their immoral practices and filthy ways.