 While the city held, on 13 December 1581 Ivan the Terrible began negotiations that concluded with the Truce of Jam Zapolski on 15 January 1582.The treaty was favorable to the Commonwealth, as Ivan ceded Polatsk, Veliz and most of the Duchy of Livonia in exchange for regaining Velikiye Luki and Nevel.In 1584, Báthory allowed Zamoyski to execute Samuel Zborowski, whose death sentence for treason and murder had been pending for roughly a decade.