During the wars between Russia and Poland between 1654 and 1667, the town was plundered and burnt. In the aftermath of the war with the Tsardom of Russia in 1655, both castles were demolished and the town's prosperity ended. The castle ruins remained a historical landmark. During the Great Northern War (1700–1721) Trakai was plundered again, as famine and plague swept the country.