Deutschordensstaat
Throughout the existence of medieval Livonia there was a constant struggle over supremacy, between the lands ruled by the Church, the Order, the secular German nobility, and the citizens of the Hanseatic towns of Riga and Reval. Following its defeat in the Battle of Grunwald in 1410, the Teutonic Order and the State of the Teutonic Order fell into decline, but the Livonian Order managed to maintain its independent existence.