The Livonian War (1558–1583) was fought for control of Old Livonia in the territory of present-day Estonia and Latvia when the Tsardom of Russia faced a varying coalition of Denmark–Norway, the Kingdom of Sweden, the Union (later Commonwealth) of the Grand Duchy of Lithuania and the Kingdom of Poland.