Livonia, known in earlier records as Livland, is a historical region on the present-day land of Latvia and Estonia. It is named after the historical Livonians, who lived on the shores of present-day Latvia.

By the end of the 13th century, the name was extended to most of present-day Estonia and Latvia, which the Livonian Brothers of the Sword had conquered during the Livonian Crusade (1193–1290). Medieval Livonia, or Terra Mariana, reached its greatest extent after the Saint George's Night Uprising (1343–1345), which forced Denmark to sell the Duchy of Estonia (northern Estonia conquered by Denmark in the 13th century) to the State of the Teutonic Order in 1346. Livonia, as understood after the retreat of Denmark in 1346, bordered on the Gulf of Finland in the north, Lake Peipus and Russia to the east, and Lithuania to the south.

As a consequence of the Livonian War (1558–1583), the territory of Livonia was reduced to the southern half of Estonia and the northern half of Latvia.

The indigenous inhabitants of Livonia were various Finnic tribes in the north and Baltic tribes in the south. The descendants of the crusaders formed the nucleus of the new ruling class of Livonia after the Livonian Crusade, and they eventually became known as Baltic Germans.

History

Beginning in the 12th century, Livonia became a target for economic and political expansion by Danes and Germans, particularly for the Hanseatic League and the Cistercian Order. Around 1160, Hanseatic traders from Lübeck established a trading post on the site of the future city of Riga, which Bishop Albrecht von Buxthoeven founded in 1201.

Livonian Crusade and the Livonian Brothers of the Sword (1198–1229)

The Livonian Chronicle of Henry from the 1220s gives a firsthand account of the Christianization of Livonia, granted as a fief by the Hohenstaufen (de facto but not known as) the King of Germany, Philip of Swabia (), to Bishop Albert of Riga (Albert of Buxhoeveden), nephew of Hartwig II, the Archbishop of Bremen, who sailed (1200) with a convoy of ships filled with armed crusaders to carve out a Catholic territory in the east as part of the Livonian Crusade. Bishop Albert founded the military order of the Livonian Brothers of the Sword (, ) in 1202; Pope Innocent III sanctioned the establishment in 1204. Albert did so in order to aid the Bishopric of Riga in the conversion of the pagan Curonians, Livonians, Semigallians, and Latgalians living on the shores of the Gulf of Riga. The membership of the order comprised German "warrior monks". Alternative names of the order include the Christ Knights, Sword Brethren, and the Militia of Christ of Livonia. From its foundation, the undisciplined Order tended to ignore its supposed vassalage to the bishops. In 1215, Albert ordered the construction of a cathedral in Riga. In 1218, he asked King Valdemar II of Denmark for assistance, but Valdemar instead arranged a deal with the Brotherhood and conquered northern Estonia for Denmark. The Brotherhood had its headquarters at Fellin (Viljandi) in present-day Estonia, where the walls of the Master's castle stand. Other strongholds included Wenden (Cēsis), Segewold (Sigulda) and Ascheraden (Aizkraukle). The commanders of Fellin, Goldingen (Kuldīga), Marienburg (Alūksne), Reval (Tallinn), and the bailiff of Weißenstein (Paide) belonged to the five-member entourage of the Order's Master.

Pope Gregory IX asked the Brothers to defend Finland from Novgorodian attacks in his letter of 24 November 1232;. In Latin. Hosted by the National Archive of Finland . See and Diplomatarium Fennicum from the menu. however, no known information regarding the knights' possible activities in Finland has survived. (Sweden eventually took over Finland after the Second Swedish Crusade in 1249.) In the Battle of Saule in 1236 the Lithuanians and Semigallians decimated the Order. This disaster led the surviving Brothers to become incorporated into the Order of Teutonic Knights in the following year, and from that point on they became known as the Livonian Order. They continued, however, to function in all respects (rule, clothing and policy) as an autonomous branch of the Teutonic Order, headed by their own Master (himself de jure subject to the Teutonic Order's Grand Master).

Internal conflicts in Livonia (1229–1236)

The January 1229 death of Albert of Riga caused a diocesan feud in the Archbishopric of Riga, as two rival candidates were elected. Pope Gregory IX, through cardinal Otto of Tonengo, tasked Baldwin of Alna as papal legate to resolve the dispute. After securing the submission of Courland, Baldwin soon found himself in conflict with various factions in Livonia, fleeing to Dünamünde and temporarily leaving Livonia in early 1232. The pope made him bishop of Semigallia and gave him papal legation throughout much of Livonia, and Baldwin returned by 1233. He tried to take the castle of Reval (modern Tallinn) from the Sword Brothers, but in August–September 1233 they defeated Baldwin, who excommunicated many Sword Brothers in retaliation.

At that point, Livonia was divided into two camps: Baldwin's Bishopric of Semigallia, the Bishopric of Dorpat and the late Albert of Riga's Buxhöveden family plus several monasteries, most Estonians and Curonians, versus the Livonian Sword Brothers, Nicholas' Bishopric of Riga, and the city of Riga. Previous generations of historians have argued that Baldwin attempted to make the whole Baltic region an ecclesiastical state, but (1993) refuted this idea as "fanciful speculation". Similarly, the traditional assertion that Baldwin had extensive plans to conquer and convert eastwards into parts of Pskov and Novgorod do not stand up under scrutiny, showing that papal correspondence with Baldwin was primarily concerned with ending the internal conflict in Livonia on terms favourable to Rome. Therefore, no Livonian faction was allowed to form an alliance with an external power, be they pagan or Novgorodian, to prevent the internal conflict from spilling over and threaten Livonia's external security.

In 1234, the pope recalled Baldwin, and replaced him with William of Modena. The pope did not give a verdict until April 1236, when the Sword Brothers were tasked to return Reval to the Danish king. The terms of the agreement were not finalised until the Treaty of Stensby (7 June 1238), when the Livonian Sword Brothers, crushed at Saule and now submitted to the Teutonic Order, relinquished their claims to Reval and much of northern Estonia to Denmark, and to share future territorial gains with two-thirds for the Danish king and one third for the Livonian Order.

Livonian Order, the Bishoprics and Riga from 1237 until 1418

The Livonian Order was a largely autonomous branch of the Teutonic Knights (or Teutonic Order) and a member of the Livonian Confederation from 1418 to 1561. After being defeated by Lithuanian forces in the 1236 Battle of Saule, the remnants of the Livonian Brothers of the Sword were incorporated into the Teutonic Knights as the Livonian Order in 1237. Between 1237 and 1290, the Livonian Order conquered all of Courland, Livonia, and Semigallia, but their attack on northern Russia was repelled in the Battle of Rakvere (1268). In 1346, after the St. George's Night Uprising the Order purchased the rest of Estonia from King Valdemar IV of Denmark. The Chronicle of Henry of Livonia and the Livonian Rhymed Chronicle describe conditions within the Order's territory. The Teutonic Order fell into decline following its defeat in the Battle of Grunwald in 1410 and the secularization of its Prussian territories by Albert of Brandenburg in 1525, but the Livonian Order managed to maintain an independent existence.

Livonian Confederation (1418–1561)

In 1418, the Archbishop of Riga, Johannes Ambundii, organised the five ecclesiastical states of the Holy Roman Empire in Medieval Livonia (Livonian Order, Courland, Ösel–Wiek, Dorpat and Riga) into the Livonian Confederation.The History of the Baltic States By Kevin O'Connor; ; p. 23 A diet or Landtag was formed in 1419. The city of Walk was chosen as the site of the diet.

From the 14th to the 16th centuries, Middle Low German – as spoken in the towns of the Hanseatic League — functioned as the established language of the Livonian lands, but High German subsequently succeeded it as the official language in the course of the 16th and 17th centuries.

Livonian War (1558–1583)

Ferdinand I, Holy Roman Emperor once again asked for help of Gustav I of Sweden, and the Kingdom of Poland also began direct negotiations with Gustav, but nothing resulted because on 29 September 1560, Gustav I Vasa died. The chances for success of Magnus, (who had become Bishop of Courland and of Ösel-Wiek) in 1560 and his supporters looked particularly good in 1560 (and in 1570). In 1560 he had been recognised as their sovereign by the Bishopric of Ösel-Wiek and by the Bishopric of Courland, and as their prospective ruler by the authorities of the Bishopric of Dorpat; the Bishopric of Reval with the Harrien-Wierland gentry were on his side; the Livonian Order conditionally recognised his right of ownership of the (future) Duchy of Estonia. Then along with Archbishop Wilhelm von Brandenburg of the Archbishopric of Riga and his Coadjutor Christoph von Mecklenburg, Kettler, the last Master of the Teutonic Order, gave to Magnus the portions of the Kingdom of Livonia which he had taken possession of, but they refused to give him any more land.

Once Eric XIV of Sweden became king in September 1560 he took quick actions to get involved in the war. He negotiated a continued peace with Muscovy and spoke to the burghers of Reval city. He offered them goods to submit to him as well as threatening them. By 6 June 1561, they submitted to him contrary to the persuasions of Kettler to the burghers. King Eric's brother and future King Johan married the Polish-Lithuanian princess Catherine Jagiellon in 1562. Wanting to obtain his own land in Livonia, he loaned Poland money and then claimed the castles that they had pawned as his own instead of using them to pressure Poland. After Johan returned to Finland, Erik XIV forbade him to deal with any foreign countries without his consent.

Shortly after that, Erik XIV quickly lost any allies that he was about to obtain, either in the form of Magnus or of the Archbishop of Riga. Magnus was upset that he had been tricked out of his inheritance of Holstein. After Sweden occupied Reval, Frederick II of Denmark made a treaty with Erik XIV of Sweden in August 1561. Magnus and his brother Frederick II were in great disagreement, and Frederick II negotiated a treaty with Ivan IV on 7 August 1562 to help his brother obtain more land and to stall further Swedish advances. Erik XIV did not like this, and the Northern Seven Years' War (1563–1570) broke out, with Sweden pitted against the Free City of Lübeck, Denmark, and Poland-Lithuania. While only losing land and trade, Frederick II and Magnus were not faring well. But in 1568 Erik XIV became insane and his brother Johan took his place as King John III of Sweden.

Johan III, due to his friendship with Poland-Lithuania, began a policy against Muscovy. He would try to obtain more land in Livonia and to dominate Denmark. After all parties had been financially drained, Frederick II let his ally, King Sigismund II Augustus of Polish–Lithuanian Commonwealth, know that he was ready for peace. On 15 December 1570, the Treaty of Stettin concluded the Northern Seven Years' War.