Passage: Livonia had been part of the Grand Duchy of Lithuania from 1561, since the Livonian Order was secularized by the Union of Vilnius and the Livonian Confederation dissolved during the Livonian Wars. Part of Livonia, formed the Duchy of Courland and Semigallia, while the south-west part of today's Estonia and north-east part of today's Latvia, covering what is now Vidzeme and Latgale, were ceded to the Grand Duchy of Lithuania.

Question: What country was the land ceded to?
Grand Duchy of Lithuania