Joshua made a peace treaty with them and agreed to let them live. The leaders of the community sealed it with an oath.
Then the whole army safely returned to Joshua at the camp in Makkedah. No one dared threaten the Israelites.