א׳V. 10-14. כי תקרב. The previous laws organise the army for open warfare. Now follow laws regulating sieges. It is made a duty always to offer first terms of peace, לשלום. If the town surrenders, no person and no property may suffer any injury whatsoever, they only were subjected to pay tribute and to be held in subjection. יהיו לך למס ועבדוך. According to the most general views expressed in ספרי and ירושלמי, and upheld also by הל׳ מלכים) רמב״ם VI,1) and רמב״ן, this applied in all cases, also to the inhabitants of the Land at the conquest. They too had to be offered peace and permission to stay in the Land in a tributary position, but only on the condition of giving up idolatry and returning to the universal human laws of morality and justice, the שבע מצות בני נח, the seven Noachian Laws. The complete annihilation out of the Land ordered in V. 16-17 was only if they refused to accept these terms of peace, and, keeping the polytheistic ways of life wished to assert themselves in the Land.
ב׳Thus it says in Jerusalmi (Schevuoth 6,1): שלש פרסטגיות שלח יהושע לארץ ישראל עד שלא יכנסו לארץ מי שהוא רוצה להפנות יפנה להשלים ישלים לעשות מלחמה יעשה גרגשי פינה והאמין לו הקב״ה והלך לו לאפריקי גבעונים השלימו שלשים ואחד מלך עשו מלחמה ונפלו: “Joshuah sent three heralds in front of him before he entered the Land, with the proclamation: Who wishes to leave the Land, let him go away; whoso will accept my peace-terms, let him make peace; whoso wishes to make war, let him make war! The Girgashi left the country and emigrated to Africa, the Gibeonites chose peace, the thirty-one kings chose war and fell. Hence it is recorded in Josh. 11,19: לא היתה עיר אשר השלימה אל בני ישראל בלתי החוי יושבי גבעון וגו׳, that, apart from the Gibeonites no city would accept peace terms with the children of Israel, which clearly indicates that such peace terms were offered to them. If then nevertheless the Gibeonites thought they had to take refuge by resorting to trickery, they must either—as the commentators explain—not have trusted the simple terms of peace that Joshuah offered, or have been trying to get a relationship that went beyond those terms, to make a treaty, a כריתות ברית as they themselves expressly said in their proposal כרתו לנו ברית, which however was definitely forbidden to Israel in Ex. 34,14.
ג׳It was further (verses 12-14) made a law that in the case of cities captured by force of arms, only the men capable of bearing arms were allowed to be killed, but women and children as well as all livestock and other property were not to suffer any injury or destruction.