Sweden's recorded history begins with the Geats and Swedes, tribal confederations occupying the southern and central portions of what is now Sweden during the first millennium. Roman historian Tacitus described these groups in his Germania around 98 AD, noting their ships and maritime capabilities. Archaeological evidence from sites like Old Uppsala shows continuous settlement from the third century onward, with burial mounds containing grave goods indicating hierarchical social structures and long-distance trade connections reaching the Roman Empire and beyond.
The Viking Age from approximately 793 to 1066 marked Sweden's expansion eastward across the Baltic Sea. Swedish Vikings, often called Varangians in eastern sources, established trade routes through present-day Russia along the Volga and Dnieper rivers, reaching Constantinople and the Abbasid Caliphate. The Birka archaeological site on Björkö island in Lake Mälaren, occupied from approximately 750 to 975, contains evidence of these trading networks including Arabic silver coins, Byzantine silk, and goods from Central Asia. Birka's excavated areas show a planned urban settlement with designated craft quarters, suggesting administrative complexity beyond raiding activities. Runic stones from this period, numbering over 2,500 across Sweden with concentrations in Uppland, record individual expeditions, inheritance claims, and bridge constructions, providing direct testimony from participants rather than external observers.
Christianization occurred gradually between the ninth and twelfth centuries, meeting resistance in central Swedish territories. Ansgar, a Frankish missionary, visited Birka around 830 under commission from Louis the Pious, establishing a church that survived approximately until 845 before pagan reactions forced its closure. The process accelerated under King Olof Skötkonung, baptized around 1008, who minted Sweden's first coins bearing Christian symbols at Sigtuna. Archaeological evidence from Christian burials begins appearing in Uppsala around 1050, though the pagan temple complex at Old Uppsala likely continued operating until approximately 1090 when construction began on a Christian church at the same site. Adam of Bremen's Gesta Hammaburgensis around 1075 describes the Uppsala temple containing statues of Thor, Odin, and Freyr, with sacrifices conducted every nine years, though his account reflects secondhand information filtered through Christian perspectives.
The consolidation of medieval Sweden occurred under the Sverker and Erik dynasties, which alternated control through the twelfth and thirteenth centuries. Erik IX, later canonized as Sweden's patron saint, ruled from approximately 1156 to 1160 and led a crusade into Finland, though contemporary sources for his reign are sparse and later hagiographies expanded his historical footprint beyond documentary evidence. The establishment of Uppsala as an archbishopric in 1164 created an ecclesiastical center independent of Danish control in Lund, formalizing Sweden's religious autonomy. Birger Jarl, functioning as regent from 1248 to 1266, founded Stockholm around 1252 as a fortified trading post controlling access between Lake Mälaren and the Baltic Sea, with the location chosen specifically to regulate commerce and collect customs revenue.
The Kalmar Union of 1397 joined Sweden, Norway, and Denmark under a single monarch, initially Queen Margaret I, while maintaining separate laws and administrations within each kingdom. The union resulted from Margaret's successful claims to all three thrones through inheritance and political maneuvering following the death of her son Olaf II in 1387. The arrangement intended to present unified opposition to the German Hanseatic League's commercial dominance around the Baltic, though internal tensions between Swedish nobility and Danish-appointed regents created persistent instability. The union functioned intermittently through 126 years, with Swedish noble factions repeatedly rebelling against Danish administrators who attempted to centralize control in Copenhagen.
Sten Sture the Elder served as Lord Protector of Sweden from 1470 to 1497 and again from 1501 to 1503, representing Swedish noble resistance to union governance. His victory at the Battle of Brunkeberg in 1471 against forces of Danish King Christian I prevented Danish military control of Stockholm, with the battle fought within current Stockholm city limits on elevated ground between Norrmalm and Östermalm districts. The conflict continued under subsequent regents until Christian II of Denmark invaded Sweden in 1520, capturing Stockholm after a siege lasting from September 1519 to September 1520.
The Stockholm Bloodbath occurred on November 8-9, 1520, when Christian II executed approximately 82 Swedish nobles, clergy, and burghers in Stockholm's main square after promising amnesty. The executions followed Christian's coronation, justified through accusations of heresy prosecuted by Gustav Trolle, the Archbishop of Uppsala, whom Swedish nobility had previously deposed and imprisoned. Among the executed were members of the Sture family, bishops including Matthias of Strängnäs, and prominent merchants. Contemporary sources including Danish records and Swedish chronicles agree on the approximate death toll, though exact numbers vary between 80 and 90 across different accounts. Christian returned to Denmark afterward, apparently believing he had eliminated organized Swedish opposition.
Gustav Eriksson Vasa, whose father Erik Johansson had been executed in the bloodbath, escaped Danish custody and traveled to Dalarna in central Sweden, where he organized resistance beginning in early 1521. This initiated the Swedish War of Liberation, initially involving small-scale guerrilla actions that expanded as peasant levies joined noble opposition forces. Gustav's forces captured the mining region around Falun in early 1521, securing funding through copper revenues, then proceeded toward Stockholm through 1522 and early 1523. Danish forces abandoned Stockholm on June 6, 1523, and Gustav Vasa entered the city on June 24, 1523. The Riksdag of the Estates elected him king on June 6, 1523, establishing the date as Sweden's national day, though celebration as an official holiday only began in 1983.
Gustav Vasa's reign from 1523 to 1560 transformed Sweden from a medieval confederation into a centralized state. He implemented the Protestant Reformation beginning with the Riksdag of Västerås in 1527, which subordinated church property to crown control and authorized Lutheran preaching, though full doctrinal changes occurred gradually through subsequent decades. The Reformation transferred approximately 21 percent of Swedish land from church ownership to the crown, according to cadastral records, providing revenue for state administration and military development. Gustav established hereditary monarchy through the Succession Pact of 1544, ending elective kingship and ensuring his descendants' claim to the throne. He reorganized tax collection, created the first Swedish navy with ships constructed at Stockholm and other coastal sites, and implemented a census system to track taxable population and resources.
The Vasa dynasty ruled Sweden until 1654, overseeing the country's expansion into a major European power. Gustavus Adolphus, who reigned from 1611 to 1632, modernized Swedish military organization through innovations including standardized formations, lighter artillery designed for battlefield mobility, and systematic logistics supporting extended campaigns. His intervention in the Thirty Years' War from 1630 began with landings at Peenemünde on the Baltic coast, ostensibly supporting Protestant German states but also securing Swedish territorial and commercial interests around the Baltic. The Battle of Breitenfeld on September 17, 1631, demonstrated Swedish tactical superiority when approximately 42,000 Swedish and Saxon troops defeated 35,000 Imperial Catholic forces under Count Tilly, with Swedish infantry and artillery coordination proving decisive. Gustavus Adolphus died at the Battle of Lützen on November 16, 1632, shot multiple times during a cavalry engagement in dense fog, though his armies won the battle under continued Swedish command.
Christina became queen at age six in 1632, with Axel Oxenstierna serving as regent during her minority until 1644. She received extensive education in languages, philosophy, and statecraft, corresponding with René Descartes whom she invited to Stockholm in 1649. Descartes died in Stockholm on February 11, 1650, reportedly from pneumonia exacerbated by early morning tutoring sessions in the unheated royal library during winter. Christina abdicated on June 6, 1654, after announcing her decision to the Riksdag, converting to Catholicism afterward in Brussels during 1655, which Swedish law prohibited for monarchs. Her abdication enabled her cousin Charles X Gustav to assume the throne, continuing Vasa dynasty rule through the male line.