East Francia
Spytihněv further strengthened ties with East Francia by forming an alliance with Margrave Luitpold of Bavaria, who in 898 fought against Mojmír II with the result that Bohemia finally separated from the Greater Moravian realm. Designed to protect Bohemia against the ravages of Hungarian invasions, the alliance with East Francia also opened Bohemia to Carolingian culture and paved the way for the eventual triumph of Roman Catholicism in Czech spiritual affairs.