In 1561, during the Livonian War, Livonia fell to the Grand Duchy of Lithuania and became a dependent vassal of Lithuania. Eight years later, in 1569, when the Grand Duchy of Lithuania and the Kingdom of Poland formed the Polish–Lithuanian Commonwealth, Livonia became a joint domain administered directly by the king and grand duke.