In January 1582, King Stefan Batory ended his third campaign against the Muscovite state. Tsar Ivan the Terrible sued for peace, returning captured territory in Livonia to Poland and agreeing to a truce in exchange for Batory abandoning his siege of Pskov.