The Treaty of Oliwa, or Peace of Oliwa, was a treaty signed between Sweden and Poland, at Oliwa, near Gdansk in Poland, on April 23, 1660. In the treaty John II of Poland renounced his claims to the Swedish Crown, which his father Sigismund III had lost in 1599. In it Poland also formally ceded Livonia and the city of Riga, which had already been under Swedish control since the 1620s.
The treaty finally settled conflicts that had been left standing in the War against Sigismund (1598-1599), Polish-Swedish War (1600-1629) and the Northern Wars (1655-1660) between Sweden and Poland.
By the Treaty of Oliva between Poland and Sweden in 1660 following the Northern Wars the Polish king renounced all claims to the Swedish throne and Livonia was formally ceded to Sweden.
By the peace treaties of Brömsebro (1645) and Roskilde (1658) the Realm of Sweden expanded to the south.
According to the peace treaties the country was to retain its old laws and privileges, and was initially administered as a dominion.