 In August 1316, Waldemar's troops were defeated near Gransee.According to the 1317 Treaty of Templin, the margrave had to surrender Stargard and Neubrandenburg to Mecklenburg.He also had to waive the previous Pomerelian acquisitions of Schlawe and Stolp, which passed to Duke Wartislaw IV of Pomerania.