At the end of the existence of the state of the Franks. There was a period of the great conquests of the Hungarians in Europe. Of course they established authority. And that was the Hungarian Empire.
It is believed that the Franks founded the Holy Roman Empire after defeating the Hungarians at the Lech River. But they could not do this, because the Hungarians had huge cavalry and excellent warriors, and the Germans always had only peasant rabble in their troops. They had no cavalry and had nowhere to feed their horses, because they did not have rich pastures. Battle of Leh fiction
This means that the Holy Roman Empire was formed later. Most likely this was at the time of the ferocity of the Inquisition, and it is with this that the change in church policy is connected. This was at the end of the 12-13th century. Obviously, this was somehow connected with the Timurid invasion of the Golden Horde.
The Holy Empire was founded in the year 800 A.D. from Charlesmagne the king of the Frankonians (a Germanic tribe)
The attacks of the Magyars started in 881 A.D. against Wenia (Vienna). After the death of emperor Arnulf Bavarian fighters under bishop Richard and margrave Luitpold were able to eliminate an army of 1200 Magyars in 900 A.D. - but most Magyars were able to flee with their take. In 901 had happened nearly the same. In 906 or 908 Bavarians gave a banquet for the Magyars and murdered the "kende" (=king and religious leader) of the Magyars. But this did not stop the Magyars. 905/6 the Magyars attacked Moravia and the Saxons so in 907 the Bavarians tried to stop the Magyars in their own country. They lost in Pressburg against grand prince Arpad and Luitpold and the high officals of the Bavarians died in this battle. Arpad died in the same year - but no one knows whether this had something to do with this battle or not.
The duke of Bavaria, Arnulf the evil, started immediatelly to build an horsemen-army. He introduced a new duty so every of his vassals had to send 1 horsemen per 10 farmers - but the clerical princes did not do so. In 908 the Magyars attacked Saxonians again - and in 909 they had attacked again Bavaria and also the Swabians. On their way back with their take Arnulf attacked them and wan. But in 910 the Magyars attacked again and destroyed an army of the Swabians (count palatine Gozbert died in this battle) and an Frankonian army under Ludwig the child lost in a battle at the Lechfeld. Arnulf had been only able to destroy one unit of the army of the Magyars.
After plunderings in Frankonia and Swabia in 912 the Magyars started one year later again to attack Bavaria and Swabia. Again blocked duke Arnulf the Magyars - this time together with the Swabian palatine counter Erchanger. It's said only 30 of them survived - nevertheless Arnulf had been able to make a diplomatique agreement with the Magyars to let it be to attack Bavaria. Arnulf tried in the next year an rebellion against king Konrad - but failed. Now Arnulf himselve had to flee to the Magyars. Nevertheless the Magyars did not break their agreement - what was a stronger problem now for other Germanic tribes. Duke Heinrich from Saxonia had stopped an army of the Magyars in 1913 - but in 1915 the Magyars wasted Swabia, Thuringia and Saxonia as well as Bremen. 917 they destroyed Basel and attacked also the Alsace and Lorraine. When Heinrich was crowned in 919 AD the Magyars again attacked the Holy Empire.
In 926 Heinrich caught an important noble of the Magyars and was able to get a 10 years truce with Saxonia. Now the Magyars attacked again the South of Germany. In 926 they attacked Augsburg which was defended from bishop Ulrich. And they attacked and plundered the monastery St. Gallen. Duke Arnulf - who had been back in Bavaria meanwhile - was forced to pay for the peace in the South with tributes to the Magyars.
In 927 duke Arnulf and king Heinrich agreed to go a common way against the Magyars. So Heinrich did not pay tribute to the Magyars - the Magyars attacked and Heinrich wan this battle at Riade. Although he had won he decided to pay tribute to the Magyars on his own free will. The risks seemed to be too high for him. In Germany everywhere new castles were made while the situation had been relativelly relaxed. In 934 the Magyars together with the Pechenegs attacked Byzantium, 937 they attacked France, and in 938 they used a rebellion against king Otto (crowned in 936) to attack Saxonia again. But the new castles everywhere made it much more easy for the defenders to strike back and to throw out the Magyars. In 943 the Bavarians wan in an offensive battle under duke Berthold (son from Luitpold and brother of Arnulf). In 947 the leader of the Magyars Szabolcs died and Fajsz overtook. After a new victory of the Bavarians under duke Heinrich (who had been installed from king Otto) the Bavarians came even up to Sopron.
When in the Liudofinic rebellion against Otto nearly the whole South rebelled against king Otto the Magyars used in 954 this chance and moved over Bavaria and Belgium to North-France and back over the North of Italy and Croatia. And when in the year 955 the Magyars offered Otto a new contract he nevertheless rejected this offer. Because of the attacks of the Magyars his contrahents within the Holy Empire had now the duty to support him. This time in the battle of the Lechfeld Otto not made the same as his father had done in the battle of Riade. He did not only strike back the Magyars - he followed them and killed them - until their army did not exist any longer. As a result the Magyars developed a more resident lifestyle.