In the Treaty of Oliva in 1660, John Casimir finally renounced his claims to the Swedish crown, which ended the feud between Sweden and the Commonwealth and the accompanying string of wars between those countries (War against Sigismund (1598–1599), Polish–Swedish wars (1600–1629) and the Northern War (1655–1660)).