= Riga =
The river Daugava has been a trade route since antiquity, part of the Vikings' Dvina-Dnieper navigation route to Byzantium. A sheltered natural harbour 15 km (9.3 mi) upriver from the mouth of the Daugava — the site of today's Riga — has been recorded, as Duna Urbs, as early as the 2nd century. It was settled by the Livs, an ancient Finnic tribe.
Riga began to develop as a centre of Viking trade during the early Middle Ages. Riga's inhabitants occupied themselves mainly with fishing, animal husbandry, and trading, later developing crafts (in bone, wood, amber, and iron).
The Livonian Chronicle of Henry testifies to Riga having long been a trading centre by the 12th century, referring to it as portus antiquus (ancient port), and describes dwellings and warehouses used to store mostly corn, flax, and hides. German traders began visiting Riga, establishing a nearby outpost in 1158.
Along with German traders also arrived the monk Meinhard of Segeberg to convert the Livonian pagans to Christianity. Catholic and Orthodox Christianity had already arrived in Latvia more than a century earlier, and many Latvians baptised. Meinhard settled among the Livs, building a castle and church at Ikšķile, upstream from Riga, and established his bishopric there. The Livs, however, continued to practice paganism and Meinhard died in Ikšķile in 1196, having failed his mission. In 1198, the Bishop Berthold arrived with a contingent of crusaders and commenced a campaign of forced Christianization. Berthold was killed soon afterwards and his forces defeated.
The Church mobilised to avenge. Pope Innocent III issued a bull declaring a crusade against the Livonians. Bishop Albert was proclaimed Bishop of Livonia by his uncle Hartwig of Uthlede, Prince-Archbishop of Bremen and Hamburg in 1199. Albert landed in Riga in 1200 with 23 ships and 500 Westphalian crusaders. In 1201, he transferred the seat of the Livonian bishopric from Ikšķile to Riga, extorting agreement to do so from the elders of Riga by force.
[c] Under Bishop Albert [c]
The year 1201 also marked the first arrival of German merchants in Novgorod, via the Dvina. To defend territory and trade, Albert established the Order of Livonian Brothers of the Sword in 1202, open to nobles and merchants.
Christianization of the Livs continued. In 1207, Albert started on fortification of the town. Emperor Philip invested Albert with Livonia as a fief and principality of the Holy Roman Empire. To promote a permanent military presence, territorial ownership was divided between the Church and the Order, with the Church taking Riga and two-thirds of all lands conquered and granting the Order a third. Until then, it had been customary for crusaders to serve for a year and then return home.
Albert had ensured Riga's commercial future by obtaining papal bulls which decreed that all German merchants had to carry on their Baltic trade through Riga. In 1211, Riga minted its first coinage, and Albert laid the cornerstone for the Riga Dom. Riga was not yet secure as an alliance of tribes failed to take Riga. In 1212, Albert led a campaign to compel Polotsk to grant German merchants free river passage. Polotsk conceded Kukenois (Koknese) and Jersika to Albert, also ending the Livs' tribute to Polotsk.
Riga's merchant citizenry chafed and sought greater autonomy from the Church. In 1221, they acquired the right to independently self-administer Riga and adopted a city constitution.
That same year Albert was compelled to recognise Danish rule over lands they had conquered in Estonia and Livonia. Albert had sought the aid of King Valdemar of Denmark to protect Riga and Livonian lands against Liv insurrection when reinforcements could not reach Riga. The Danes landed in Livonia, built a fortress at Reval (Tallinn) and set about conquering Estonian and Livonian lands. The Germans attempted, but failed, to assassinate Valdemar. Albert was able to reach an accommodation with them a year later, however and, in 1222, Valdemar returned all Livonian lands and possessions to Albert's control.
Albert's difficulties with Riga's citizenry continued; with papal intervention, a settlement was reached in 1225 whereby they no longer had to pay tax to the Bishop of Riga, and Riga's citizens acquired the right to elect their magistrates and town councillors. In 1226, Albert consecrated the Dom Cathedral, built St. James's Church, (now a cathedral) and founding a parochial school at the Church of St. George.
In 1227, Albert conquered Oesel  and the city of Riga concluded a treaty with the Principality of Smolensk giving Polotsk to Riga.
Albert died in January 1229. He failed in his aspiration to be anointed archbishop but the German hegemony he established over the Baltic would last for seven centuries.
[c] Hanseatic League [c]
In 1282, Riga became a member of the Hanseatic League. The Hansa was instrumental in giving Riga economic and political stability, thus providing the city with a strong foundation which endured the political conflagrations that were to come, down to modern times.
[https://en.wikipedia.org/wiki/Riga#History, 2016-05-09]