The Livonian War (1558–1583) concerned control of Old Livonia (in the territory of present-day Estonia and Latvia). The Tsardom of Russia faced a varying coalition of the Dano-Norwegian Realm, the Kingdom of Sweden, and the Union (later Commonwealth) of the Grand Duchy of Lithuania and the Kingdom of Poland.
From 1558 to 1578, Russia dominated the region with early military successes at Dorpat (Tartu) and Narva. The Russian dissolution of the Livonian Confederation brought Poland–Lithuania into the conflict, and Sweden and Denmark-Norway intervened between 1559 and 1561. Swedish Estonia was established despite constant invasion from Russia, and Frederick II of Denmark-Norway bought the old Bishopric of Ösel–Wiek, which he placed under the control of his brother Magnus of Holstein. Magnus attempted to expand his Livonian holdings to establish the Russian vassal state, the Kingdom of Livonia, which nominally existed until his defection in 1576.