To not make a covenant with the seven nations and likewise with any worshiper of idolatry: That we not make a covenant, meaning to say that we promise our friendship to the bad nation of heretics — which are the seven nations in the Torah which were holding our Land before our arriving there, and they are the Hittite, the Emorite, etc. — as it is stated (Exodus 23:32), “You shall not make a covenant with them and their gods.” [This] means to say that we should not make peace with them and leave them to worship idolatry.
It is from the roots of this commandment to destroy idolatry and all of those who serve it from the world. And these seven nations were the center of idolatry and its first foundation; and because of this, they were uprooted from their Land. And we were commanded to uproot them and to destroy their memory forever. And it is as it is written about them in the Torah (Deuteronomy 7:2), “and you shall surely annihilate them” - and that is a positive commandment in the Order of Va’etchanan. And there I will write at length about this commandment, with God’s help, and tell the reason for why these bad nations are in the world and that this commandment is included in the commandments that are practiced. And from the warning about them, we understand a warning not to make a covenant with any worshipers of idolatry. But there is a distinction between the seven nations and the other peoples that are worshipers of idolatry (Gittin 45a); as there is no commandment to kill the other peoples if they do not fight with us, but these seven nations, we are commanded to kill in any place that we are able to — unless they abandon their idolatry. And the matter is because they were the center of idolatry and its first foundation, as I have written. And anyone who has one of them come to his hand and he can kill him without danger, but does not [do so], has transgressed a negative commandment. And that which we said that we do not kill worshipers of idolatry when they are not fighting with us, is specifically [regarding] worshipers of idolatry from the [other] peoples. However it is a commandment upon us to kill an Israelite that worships idolatry — such as the sectarians, the apostates and the heretics — because they oppose Israel. And it is better that a thousand like these be destroyed than one proper Israelite.
From the laws of the commandment — that which they said that we accept them if they want to return and repent; and the rest of its details — are elucidated in Sanhedrin. (See Tur, Yoreh Deah 191.)
שֶׁלֹּא לִכְרֹת בְּרִית לְשִׁבְעָה עֲמָמִים וְכֵן לְכָל עוֹבֵד עֲבוֹדָה זָרָה – שֶׁלֹּא נִכְרֹת בְּרִית, כְּלוֹמַר שֶׁלֹּא נַבְטִיחַ בְּאַהֲבָתֵנוּ אֶל הָעָם הָרַע הַכּוֹפְרִים שֶׁהֵם שִׁבְעָה עֲמָמִים שֶׁבַּתּוֹרָה שֶׁהָיוּ מַחְזִיקִים בְּאַרְצֵנוּ טֶרֶם בּוֹאֵנוּ שָׁם, וְהֵם הַחִתִּי וְהָאֱמֹרִי וכו', שֶׁנֶּאֱמַר לֹא תִכְרֹת לָהֶם וְלֵאלֹהֵיהֶם בְּרִית, כְּלוֹמַר שֶׁלֹּא נַעֲשֶׂה עִמָּהֶם שָׁלוֹם וְנַנִּיחַ אוֹתָם לַעֲבֹד הָעֲבוֹדָה זָרָה.
To not make a covenant with the seven nations and likewise with any worshiper of idolatry: That we not make a covenant, meaning to say that we promise our friendship to the bad nation of heretics — which are the seven nations in the Torah which were holding our Land before our arriving there, and they are the Hittite, the Emorite, etc. — as it is stated (Exodus 23:32), “You shall not make a covenant with them and their gods.” [This] means to say that we should not make peace with them and leave them to worship idolatry.
מִשָּׁרְשֵׁי מִצְוָה זוֹ, לְאַבֵּד עֲבוֹדָה זָרָה וְכָל מְשַׁמְּשֶׁיהָ מִן הָעוֹלָם, וְאֵלּוּ הַשִּׁבְעָה עֲמָמִין הָיוּ עִקַּר ע"ז וִיסוֹדָהּ הָרִאשׁוֹן, וְעַל כֵּן נֶעֶקְרוּ מֵאַרְצָם. וְנִצְטַוִּינוּ לְשָׁרֵשׁ אַחֲרֵיהֶם וּלְאַבֵּד זִכְרָם לְעוֹלָם וּכְמוֹ שֶׁכָּתוּב עֲלֵיהֶם בַּתּוֹרָה (דברים ז ב) הַחֲרֵם תַּחֲרִימֵם, וְהִיא מִצְוַת עֲשֵׂה בְּסֵדֶר וָאֶתְחַנַּן (מצוה תכה) וְשָׁם אַאֲרִיךְ בַּמִּצְוָה בְּעֶזְרַת הָאֵל, וְנַגִּיד סִבַּת הֱיוֹת בָּעוֹלָם הָאֻמּוֹת הָרָעוֹת לָמָּה, וְכִי מִצְוָה זוֹ בִּכְלַל הַמִּצְוֹת הַנּוֹהֲגוֹת. וּמִן הָאַזְהָרָה בָּהֶם נִשְׁמַע אַזְהָרָה שֶׁלֹּא לִכְרֹת בְּרִית לְכָל עוֹבְדֵי ע"ז. אֲבָל יֵשׁ חִלּוּק בֵּין שִׁבְעָה עֲמָמִים לִשְׁאָר הָאֻמּוֹת עוֹבְדֵי עֲבוֹדָה זָרָה, (גיטין מה א) שֶׁשְּׁאָר הָאֻמּוֹת אִם אֵין נִלְחָמִים עִמָּנוּ אֵין מִצְוָה עָלֵינוּ לְהָרְגָם, אֶלָּא שֶׁלֹּא יֵשְׁבוּ בְּאַרְצֵנוּ עַד שֶׁיַּעַזְבוּ עֲבוֹדָה זָרָה, וְאֵלּוּ הַשִּׁבְעָה עֲמָמִים נִצְטַוִּינוּ לְהָרְגָם בְּכָל מָקוֹם שֶׁנּוּכַל לָהֶם, אֶלָּא אִם כֵּן יַנִּיחוּ עֲבוֹדָה זָרָה. וְהָעִנְיָן לְפִי שֶׁהֵם הָיוּ עִקַּר עֲבוֹדָה זָרָה וִיסוֹדָהּ הָרִאשׁוֹן, כְּמוֹ שֶׁכָּתַבְתִּי. וְכָל מִי שֶׁבָּא לְיָדוֹ אֶחָד מֵהֶם וְיָכוֹל לְהָרְגוֹ בְּלֹא סַכָּנָה וְלֹא הֲרָגוֹ עוֹבֵר בְּלָאו. וְזֶה שֶׁאָמַרְנוּ עוֹבְדֵי עֲבוֹדָה זָרָה בְּשֶׁאֵין נִלְחָמִים עִמָּנוּ שֶׁלֹּא נַהַרְגֵם דַּוְקָא עוֹבְדֵי עֲבוֹדָה זָרָה מִן הָאֻמּוֹת אֲבָל יִשְׂרָאֵל עוֹבֵד ע"ז כְּגוֹן הַמִּינִין וְהַמְּשֻׁמָּדִין וְהָאֶפִּיקוֹרוֹסִין מִצְוָה עָלֵינוּ לְהָרְגָם, לְפִי שֶׁהֵם מְצֵרִים לְיִשְׂרָאֵל, וּמוּטָב יֹאבְדוּ אֶלֶף כַּיּוֹצֵא בָּם וְלֹא יִשְׂרָאֵל אֶחָד כָּשֵׁר.
It is from the roots of this commandment to destroy idolatry and all of those who serve it from the world. And these seven nations were the center of idolatry and its first foundation; and because of this, they were uprooted from their Land. And we were commanded to uproot them and to destroy their memory forever. And it is as it is written about them in the Torah (Deuteronomy 7:2), “and you shall surely annihilate them” - and that is a positive commandment in the Order of Va’etchanan. And there I will write at length about this commandment, with God’s help, and tell the reason for why these bad nations are in the world and that this commandment is included in the commandments that are practiced. And from the warning about them, we understand a warning not to make a covenant with any worshipers of idolatry. But there is a distinction between the seven nations and the other peoples that are worshipers of idolatry (Gittin 45a); as there is no commandment to kill the other peoples if they do not fight with us, but these seven nations, we are commanded to kill in any place that we are able to — unless they abandon their idolatry. And the matter is because they were the center of idolatry and its first foundation, as I have written. And anyone who has one of them come to his hand and he can kill him without danger, but does not [do so], has transgressed a negative commandment. And that which we said that we do not kill worshipers of idolatry when they are not fighting with us, is specifically [regarding] worshipers of idolatry from the [other] peoples. However it is a commandment upon us to kill an Israelite that worships idolatry — such as the sectarians, the apostates and the heretics — because they oppose Israel. And it is better that a thousand like these be destroyed than one proper Israelite.
מִדִּינֵי הַמִּצְוָה, מָה שֶׁאָמְרוּ שֶׁמְּקַבְּלִין אוֹתָן אִם רָצוּ לַחְזֹר בִּתְשׁוּבָה. וְיֶתֶר פְּרָטֶיהָ, מְבֹאָרִים בְּסַנְהֶדְרִין [י"ד סי' קצא]
From the laws of the commandment — that which they said that we accept them if they want to return and repent; and the rest of its details — are elucidated in Sanhedrin. (See Tur, Yoreh Deah 191.)