 September 1629 in the village of Altmark (Stary Targ), in Poland, by the Polish-Lithuanian Commonwealth and Sweden, ending the Polish–Swedish War (1626–1629).The conditions of the truce allowed Sweden to retain control of Livonia and the mouth of the Vistula river.Sweden also evacuated most of the Duchy of Prussia, but kept the coastal cities.