The Christianization of Moravia refers to the spread of the Christian religion in the lands of medieval Moravia. What modern historians designate as Great Moravia was a Slavic state that existed in Central Europe from around 830 to the early 10th century. The territory of Great Moravia was originally evangelized by missionaries coming from the Frankish Empire or Byzantine enclaves in Italy and Dalmatia since the early 8th century and sporadically earlier. The diocese of Passau was charged with establishing a church structure in Moravia. The first Christian church of the Western and Eastern Slavs known to the written sources was built in 828 by Pribina, the ruler and Prince of the Principality of Nitra, although probably still a pagan himself, in his possession called Nitrava. The first Moravian ruler known by name, Mojmír I, was baptized in 831 by Reginhar, Bishop of Passau. Due to internal struggles between Moravian rulers, Mojmir was deposed by Rastislav in 846; as Mojmir was aligned with Frankish Catholicism, Rastislav asked for support from the Byzantine Empire and aligned himself with Eastern Orthodoxy. Despite the formal endorsement by the elites, the Great Moravian Christianity was described as containing many pagan elements as late as in 852. The major milestone in the Christianization of Moravia is traditionally attributed to the influence of Byzantine missionary brothers, Saints Cyril and Methodius, who arrived in Moravia in the year 863. Cyril translated the liturgy and the pericopes into the Slavic language, giving rise to the popular Slavic church, quickly surpassing the previously struggling Roman Catholic missions with their foreign German priests and Latin liturgy. A few years later, the nearby Duchy of Bohemia was also converted, with its ruler baptised in 867.. Soon Ratislav succeeded in created a church independent of both the Germans and Constantinople, subordinated directly to the See of Rome. New diocese of Pannonia was inaugurated, with Methodius as its first archbishop. After the death of Ratislav successor, Svatopluk I, Moravia was mostly partitioned between its neighbours and the Slavic church went into decline, replaced by the churches better established in those other territories. A number of expelled Slavic church priests found refuge in Bulgaria, where a number of their traditions became incorporated into the early Bulgarian Orthodox Church.