Captured by the Russians during the Livonian War in 1558, for a short period Narva became an important port and trading city for Russia as a transshipment center of goods from Pskov and Novgorod. Russian rule ended in 1581 when the Swedes under the command of Pontus De la Gardie conquered the city and it became part of Sweden. During the Russo-Swedish War (1590–1595), when Arvid Stålarm was governor, Russian forces attempted to re-gain the city without success (Treaty of Teusina, May 1595).