The Livonian War was ceased for ten years with a Truce of Yam-Zapolsky signed on 15 January 1582 according to which the already Polish–Lithuanian Commonwealth recovered Livonia, Polotsk and Velizh, but transferred Velikiye Luki to the Tsardom of Russia. The truce was extended for twenty years in 1600, when a diplomatic mission to Moscow led by Lew Sapieha concluded negotiations with Tsar Boris Godunov. The truce was broken when the Poles invaded Muscovy in 1605.