Joshua made peace with them and made a covenant with them, to let them live. The leaders of the people also made a vow to them.