The collapse of Frankish power left many of their former vassals and tributaries abandoned by their suzerain. For the newly freed duchies and kingdoms it seemed that the time for their independence had come. But the new independence was a double-edged blade, and the encroachment of Muslims from the west and pagans from the east left many pining for the days of Frankish hegemony. The hope of 738 had been nearly extinguished. Provence had been shuffled between Arab, Burgundian and Lombard rule, suffering war each time their master changed. The Burgundians had failed to maintain a kingdom, splitting into realms too small to defend without outside support. The Occitans had proven adept only at making enemies. But there was still a kingdom in the west with power. A new protector for Christendom to replace the tired and bickering Franks. This was, of course, the Kingdom of Bavaria.
Bavaria's experience in the eighth century had been something of a journey of self-discovery. Duke Odilo had led his people through the turbulent Frankish Civil War and shortly thereafter turned his attention to the south, pushing back the Avars and beginning the incorporation of Croatia. Odilo's eyes were on the Mediterranean- the great sea had been the seat of Carthage, Rome, Byzantium, and now the growing power of the Lombards. It was in the Adriatic, Odilo believed, that Bavaria's power would be found. But Bavaria's fate would soon shift drastically.
In 752 Bavaria was facing problems. Pagan practices in the hinterlands were an uncommon but not unheard of occurrence. Frankish raiders were attacking from the west as well, and Francia was undergoing its last period of power before it's total collapse under Widukind's invasion. And while the Lombards claimed to desire peace with Bavaria, the actions of Lombard ships in the Adriatic told a different story. Finally, the nobility was turning to factionalism, the internal divisions among them exacerbated by the Croatian integration. It was in this climate that the cardinals of Rome came to Odilo. Driven from the Eternal City by Desiderius' soldiers, they denounced the puppet Pope Phillip and claimed the title of Bishop of Rome for Stephen II. They came before Odilo to request sanctuary in his kingdom. Among their supporters was Boniface, the missionary who had spent much of his life preaching the word of Christ in Bavaria. A figure known and beloved throughout the duchy, Boniface promised an end to squabbling nobles. A king supporting the church and supported by the church. Temporal and spiritual power working in tandem. Odilo proved receptive to Bonfiace's proposal, and soon after the Mainz Papacy was established.
Bavaria and Lombardy found their relations strained by the beginning of the Bavarian Schism, and hostility between the two powers would only grow in the coming decades. In 760 Desiderius was proclaimed, by order of Pope Phillip, the new Western Roman Emperor. This decree placed all of the former Western Roman Empire's territories under Desiderius' theoretical control- including the now Bavarian Dalmatia. In response to the decree from Phillip, Stephen II denounced the elevation as illegitimate, and at the same time elevated the newly crowned duke Tasilo III to the rank of king, helping the young ruler cement his reign. King Tasilo came to the throne of Bavaria at a young age, succeeding his father Odilo. The first decade of his reign was a desperate attempt to prevent war between the Lombards and Bavarians, a noble effort that ultimately failed in its execution. His reign also marked the final defeat of the Avar Khaganate at the battle of Sisak in 762, which further bolstered the young king's support amongst the nobility. With the Avars defeated, Tasilo was able to devote more resources to securing the southern border with his father-in-law's empire.
The period between 762 and 768 was a time of relative peace for Bavaria. Relations with their neighbors, while not perfect, were better than they had been under Odilo. The half-decade of peace saw the growth of the Bavarian Papacy's power and influence in Bavarian society. New missions were constructed throughout Dalmatia and into Moravia, the latter being accompanied by forts to protect Bavaria's frontier. The clergy had a mutual understanding with Tasilo. The Papacy gave the king legitimacy, while the king gave the Papacy protection. As the home of the Bavarian Papacy, Mainz would attract priests and pilgrims from throughout the west who felt that the Lombard Pope was illegitimate. Some remained in Mainz or in other cities in Bavaria, while others returned home after making pilgrimage. None left without contributing to the church. With a growing talent pool and income from pilgrims as well as church lands, the Mainz Papacy grew more powerful and influential each day. By the end of the 760s, Mainz was at the center of a web a of religious institutions stretching from Bavaria to Northumbria.
But though the Papacy brought power and income to the Bavarian kingdom, it would also prove to be the cause of Bavaria's first decline. The religious tensions between Bavaria and Lombardy had been growing for decades, finally reaching a boiling point in 768 when the Schismatic's War began. For the next half decade Lombard and Bavarian blades would be locked in combat. Ultimately, Tasilo's fortifications on the southern border proved effective against the Lombards keeping them out of Bavaria proper. However, the fortifications in Dalmatia had been less successful. The region fell quickly to the Lombards, and remained in their hands after the war's end. At the same time, Widukind's armies pressed against Bavaria's northern border, and the Moravians chomped at the east. The post-war period saw a shift in Bavaria's goals and visions. Paul died in 772 and was succeeded by Adrian I, who wanted to continue the fight against the Lombards. However, the threat of Widukind necessitated an end to the conflict with Desiderius. Tasilo's dreams of recapturing Dalmatia were put on hold for the time being, as Widukind's hosts ran rampant along the northern border. The war against Widukind was long, and required vast sums of treasure to pay the army and mercenaries. Like before, much of these funds were taken from the church.
The war against Widukind ended in 783, and thus Bavaria began rebuilding. In 786 Adrian I died, succeeded by Arno, the Bishop of Salzburg, as Pope Alexander II. Alexander II turned both the Bavarian Papacy and the Bavarian Kingdom's focus to the north and east, away from the far more powerful Lombards. Tasilo listened and agreed. He saw a way to reclaim his honor after the series of defeats he had suffered throughout his reign. The Moravian Confederation was splintering under the assault of the Sorb adventurers, and their armies were weakened. In 787 Tasilo launched an invasion of Moravia, a war with the twin goals of stopping Moravian raiders and bringing the east under Christian control. The Moravians were driven from Bohemia in 790, and over the next decade the region was pacified by Bavarian might and Christian theology. The expansion into Bohemia did much to restore the favor of the nobility for the king, as new lands were distributed to both the nobles and the church. The victory in Bohemia marked the first defeat of pagans in their homeland since the rise of Widukind, and was seen as a sign of future victories throughout Christendom. For Bavaria specifically, it would prove to be the beginning of a new era.