Joshua gathered the tribes of Israel and recounted God's mighty acts in bringing them out of Egypt and giving them the promised land in spite of the opposition of many nations. He challenged the people to choose whether they would worship the foreign gods of the lands they had conquered or the Lord who had delivered them. The people unanimously chose to worship only the Lord and committed themselves to obeying Him. Joshua then made a covenant with the people and established it as a lasting memorial with stones as witnesses.