Pecheneg groups fled to the Byzantine Empire in the 1040s; the Oghuz Turks followed them, and the nomadic Cumans became the dominant power of the steppes in the 1060s. Cooperation between the Cumans and the Vlachs against the Byzantine Empire is well documented from the end of the 11th century. Scholars who reject the Daco-Roman continuity theory say that the first Vlach groups left their Balkan homeland for the mountain pastures of the eastern and southern Carpathians in the 11th century, establishing the Romanians' presence in the lands to the north of the Lower Danube. Exposed to nomadic incursions, Transylvania developed into an important border province of the Kingdom of Hungary. The Székelys—a community of free warriors—settled in central Transylvania around 1100 and moved to the easternmost regions around 1200. Colonists from the Holy Roman Empire—the Transylvanian Saxons' ancestors—came to the province in the 1150s. A high-ranking royal official, styled voivode, ruled the Transylvanian counties from the 1170s, but the Székely and Saxon seats (or districts) were not subject to the voivodes' authority. Royal charters wrote of the "Vlachs' land" in southern Transylvania in the early 13th century, indicating the existence of autonomous Romanian communities. Papal correspondence mentions the activities of Orthodox prelates among the Romanians in Muntenia in the 1230s. Also in the 13th century, during one of its greatest periods of expansion, the Republic of Genoa started establishing many colonies and commercial and military ports on the Black Sea, in the current territory of Romania. The largest Genoese colonies in present-day Romania were Calafat (still known as such), Constanța (Costanza), Galați (Caladda), Giurgiu (San Giorgio), Licostomo and Vicina (unknown modern location). These would last until the 15th century. The Mongols destroyed large territories during their invasion of Eastern and Central Europe in 1241 and 1242. The Mongols' Golden Horde emerged as the dominant power of Eastern Europe, but Béla IV of Hungary's land grant to the Knights Hospitallers in Oltenia and Muntenia shows that the local Vlach rulers were subject to the king's authority in 1247. Basarab I of Wallachia united the Romanian polities between the southern Carpathians and the Lower Danube in the 1310s. He defeated the Hungarian royal army in the Battle of Posada and secured the independence of Wallachia in 1330. The second Romanian principality, Moldavia, achieved full autonomy during the reign of Bogdan I around 1360. A local dynasty ruled the Despotate of Dobruja