15אֵין סוֹמְכִין אֶלָּא עַל חוֹמָה הַמֻּקֶּפֶת בִּשְׁעַת כִּבּוּשׁ הָאָרֶץ. כֵּיצַד. עִיר שֶׁלֹּא הָיְתָה מֻקֶּפֶת חוֹמָה בְּשָׁעָה שֶׁכָּבַשׁ יְהוֹשֻׁעַ אֶת הָאָרֶץ אַף עַל פִּי שֶׁמֻּקֶּפֶת עַתָּה הֲרֵי הִיא כְּבָתֵּי הַחֲצֵרִים. וְעִיר שֶׁהָיְתָה מֻקֶּפֶת חוֹמָה בִּימֵי יְהוֹשֻׁעַ אַף עַל פִּי שֶׁאֵינָהּ מֻקֶּפֶת עַתָּה הֲרֵי הִיא כְּמֻקֶּפֶת. וְכֵיוָן שֶׁגָּלוּ בְּחֻרְבָּן רִאשׁוֹן בָּטְלָה קְדֻשַּׁת עָרֵי חוֹמָה שֶׁהָיוּ בִּימֵי יְהוֹשֻׁעַ. כֵּיוָן שֶׁעָלָה עֶזְרָא בַּבִּיאָה הַשְּׁנִיָּה נִתְקַדְּשׁוּ כָּל הֶעָרִים הַמֻּקָּפוֹת חוֹמָה בְּאוֹתוֹ הָעֵת מִפְּנֵי שֶׁבִּיאָתָן בִּימֵי עֶזְרָא שֶׁהִיא בִּיאָה שְׁנִיָּה כְּבִיאָתָן בִּימֵי יְהוֹשֻׁעַ. מָה בִּיאָתָן בִּימֵי יְהוֹשֻׁעַ מָנוּ שְׁמִטִּין וְיוֹבְלוֹת וְקִדְּשׁוּ בָּתֵּי עָרֵי חוֹמָה וְנִתְחַיְּבוּ בְּמַעֲשֵׂר. אַף בִּיאָתָם בִּימֵי עֶזְרָא מָנוּ שְׁמִטִּין וְיוֹבְלוֹת וְקִדְּשׁוּ בָּתֵּי עָרֵי חוֹמָה וְנִתְחַיְּבוּ בְּמַעֲשֵׂר:
We rely only on a wall that surrounded [a city] at the time of the conquest of the land. What is implied? When a city was not surrounded by a wall at the time when Joshua conquered the land even though it is surrounded now, [the houses in it] are considered as the houses of a settlement. [Conversely,] if a city was surrounded by a wall at the time of Joshua, even though it is not surrounded at present, it is considered as walled. When the Jews were exiled after the first destruction [of the Temple], the sanctity of the walled cities from Joshua's time were nullified. When Ezra ascended at the time of the second entry into the land, all of the walled cities of that time became consecrated. For the entry [into the land] at the time of Ezra, i.e., the second entry, was comparable to the entry at the time of Joshua. Just as [after] their entry at the time of Joshua, they counted Sabbatical years and Jubilees, sanctified the homes in walled cities and were obligated in the tithes, so too, [after] their entry in the time of Ezra, they counted Sabbatical years and Jubilees, sanctified the homes in walled cities and were obligated in the tithes.