Joshua made a peace treaty with the men who had come. He agreed to let them live. The leaders of the community took an oath to show that they agreed with the treaty.