as a result of the peace of thorn of 1411, vytautas received žemaitija (samogitia) for his lifetime. however, the parties could not agree on the border. sigismund, holy roman emperor, agreed to mediate the dispute. in 1413, it was declared that the whole right bank of the nemunas (neman river) was žemaitija and therefore belonged to lithuania. the teutonic knights disagreed and a new war started in 1414. the war lasted for just a few months, and the dispute was brought to the council of constance. even though the dispute was not resolved, the samogitians had a chance to present their case to the leaders of europe. it is seen as an important event in the diplomatic history of lithuania. several other mediation attempts failed, and yet another war with the teutonic order started in 1422. after several months of fighting, the treaty of lake melno was signed. žemaitija/samogitia was returned to lithuania in perpetuity, while the city of memel (present-day klaipėda) and surrounding territories stayed with the order. this border, as established by the treaty, remained stable for some 500 years until the memel territory dispute of 1923. with peace established, vytautas could now concentrate on reforms and the relationship with poland.