Big Picture:
In spite of the goodness of God and the faithfulness of men like Joshua, the people chose to disobey the Lord by failing to conquer ALL the land, worshipping false gods, intermarrying with the natives, and by adapting their values and behaviors. As a result, they enter a vicious circle that is repeated over and over - Rebellion, Retribution, Repentance, and Restoration.