Riga came under the influence of the Polish-Lithuanian Commonwealth after the Treaty of Drohiczyn in 1581. In 1621, Riga became part of the Swedish Empire after the Polish-Swedish War (1621-1625). Riga resisted a Russian siege during the Russo-Swedish War (1656–1658).