The treaty had John II Casimir renounce his claims to the Swedish crown, which his father Sigismund III Vasa had lost in 1599. Poland also formally ceded to Sweden Livonia and the city of Riga, which had been under Swedish control since the 1620s. The treaty settled conflicts between Sweden and Poland left standing since the War against Sigismund (1598-1599), the Polish-Swedish War (1600-1629) and the Northern Wars (1655-1660).