The Tyrolese achieved a partial success when, on 20 October 1500, Emperor Maximilian I and Prince-Bishop Philip of Freising ratified a treaty agreed the year before that moved the border of Tyrol to within a kilometre south of Scharnitz.
[2] In 1633, Tyrol was granted the right to build border fortification of Porta Claudia at the Scharnitz Pass on Werdenfels territory in order to protect themselves from the advancing Swedish Army in the Thirty Years' War.
In a treaty made on 29 October 1656, Scharnitz and the region around the Porta Claudia were swapped for a strip of land around the Kienleitenkopf including the Karolingerhof and rights of way into the Hinterautal valley.
In another treaty on 28 May 1766, Tyrol's possession of Scharnitz and the Porta Claudia was confirmed as was a strip of territory "at a musket shot's distance at all existing fortification works in the direction of Mittenwald".
Led by local guides from Mittenwald (Bavaria was on the side of Napoléon Bonaparte), the French were able to deploy to a flank along a mountain track that ran from the Lautersee and Ferchensee past the Grünkopf (1,587 m) and attack the Austrians stationed at the Leutascher Schanz fortifications unexpectedly from the rear on 4 November 1805.