The Treaty of Melno in 1422 stabilized the border between the Teutonic Order and the Grand Duchy of Lithuania for the next 501 years. The rebuilt town received Kulm law city rights in 1475. Memel remained part of what became Prussia and Germany; the border to Lithuania remained unchanged until 1919. It was one of the longest-lasting borders in Europe, and is referred to in the now-unsung first verse of the German national anthem, which describes borders of German-speaking lands: "Von der Maas bis an die Memel", referring to the Meuse river in the West and Neman river in the East.