Nordhausen was Reichsgut (estate of the German emperor) from the beginning, but in 1158, Frederick Barbarossa donated it to the local chapter of nuns, which was converted to a cathedral chapter by Frederick II in 1220, whereby the city came back to the empire and became an Imperial Free City. Nordhausen was granted the privileges of a town around 1200, in 1198 it was first mentioned as a "villa" and in 1206, there was a mayor, a Vogt and citizens. The municipal law of Nordhausen was similar to that of Mühlhausen, hence the Mühlhausen Book of Law was adopted in the mid-13th century. Today's city wall was established between 1290 and 1330 and cut the old town off from "Altendorf" in the north-west, the "new town" in the west and "Altnordhausen" in the south. Nevertheless, the new town was legally incorporated in 1365. Besides the parish churches, many monasteries were founded during the late Middle Ages in Nordhausen (Cistercians in Altnordhausen (Frauenberg, about 1200) and Altendorf (1294), Augustines where the Nordhäuser distillery is today (1312), Franciscans at Georgengasse (1230) and Dominicans at Predigerstraße (1287)). As distinct from Mühlhausen and many other free imperial cities, Nordhausen did not own any territories or villages in the surrounding area.