The foundations of Swedish power were laid in the medieval period, when the fragmented tribal societies of Scandinavia gradually coalesced into recognizable kingdoms. The Viking Age had demonstrated the martial prowess of Scandinavian warriors and their capacity for long-distance military expeditions, but the political structures that emerged from this period were relatively weak and decentralized. Sweden in the early medieval period was characterized by competing regional dynasties, a powerful nobility that jealously guarded its prerogatives, and frequent conflicts with neighboring Denmark and Norway that prevented the concentration of resources necessary for sustained expansion.
The Kalmar Union, established in 1397, represented an early attempt to unify the Scandinavian kingdoms under Danish leadership. This political arrangement, while nominally placing Sweden under Danish sovereignty, actually demonstrated the persistent strength of Swedish independence and the difficulty of imposing external control over the scattered populations of northern Sweden. The periodic revolts against Danish rule that characterized the fifteenth and early sixteenth centuries revealed both the limitations of medieval political authority and the emerging sense of Swedish national identity that would eventually provide the foundation for imperial expansion.