So Joshua made peace with them by making a treaty which allowed them to live. The leaders of the congregation swore to it with an oath.