So Joshua agreed to make peace with the Gibeonites and to let them live. And the leaders of the Israelites swore an oath to keep the agreement.