Joshua being old, convenes the states of Israel a little before his death, Jos 23:1,2; and in his address to them observes what God had done for them, and would do, Jos 23:3-5; and exhorts them to keep the commandments of God, and cleave to him, and not to mix with the Gentiles, and join with them in idolatrous practices, and then it would be well with them, Jos 23:6-11; but otherwise should they join with them, and depart from the Lord, who had so faithfully and punctually performed every good thing he had promised them, they might expect all evils and calamities, utter ruin and destruction, to befall them, Jos 23:12-16.