Joshua dies and the new generation, not knowing God, are dominated and controlled by foreign gods until they cry out to God as a result of their own sin. God appoints a judge with the Spirit upon him to lead and deliver them in HIs mercy.