During the 16th and 17th centuries, all of the southern and central parts of the former medieval Kingdom of Hungary were under Turkish rule and organized as Ottoman Hungary. Since 1557, Serbian Orthodox Church in those regions was under jurisdiction of the Serbian Patriarchate of Peć. During the Austro-Turkish war (1683–1699), much of the central and southern Hungary was liberated and Serbian eparchies in those regions fell under the Habsburg rule. In 1689, Serbian Patriarch Arsenije III sided with Austrians, and moved from Peć to Belgrade in 1690, leading the Great Migration of the Serbs. In that time, a large number of Serbs migrated to southern and central parts of Hungary.