Soon after their seizure of Korela in 1580, the Swedes rebuilt the fortress following a Western European pattern of bastion fortifications. In the Treaty of Teusina of 1595 Sweden undertook to return Korela to Russia. This was effected in 1597. During the subsequent Ingrian War starting 1610, Gustavus Adolphus restored Swedish control of the castle and the whole area. During the Time of Troubles, Korela was a prize promised by Vasily IV of Russia to Jacob De la Gardie as part of the Swedish De la Gardie Campaign to assist Russia against the Polish-Lithuanian commonwealth. They were incorporated with Sweden as Kexholms län in the peace of Stolbovo in 1617. The fortress and the region remained with Sweden until Peter the Great captured the fortress and parts of Kexholms län during the Great Northern War.