The founding of Moldavia began with the arrival of a Vlach (Romanian) voivode (military leader), Dragoș, soon followed by his people from Maramureș to the region of the Moldova River. Dragoș established a polity there as a vassal to the Kingdom of Hungary in the 1350s. The independence of the Principality of Moldavia was gained when Bogdan I, another Vlach voivode from Maramureş who had fallen out with the Hungarian king, crossed the Carpathians in 1359 and took control of Moldavia, wresting the region from Hungary. It remained a principality until 1859, when it united with Wallachia, initiating the development of the modern Romanian state.
Moldavia developed in the lands between the Carpathian Mountains and the Dniester River, which had been dominated by nomadic Turkic peoples—the Pechenegs, Ouzes and Cumans—from around 900. The neighboring Principality of Halych and Kingdom of Hungary started to expand their authority over parts of the territory from around 1150, but the Golden Horde—a Mongol and later Turkicized khanate—took control of the lands east of the Carpathians in the 1240s. The Mongols promoted international commerce, and an important trade route developed along the Dniester. The circulation of Hungarian and Bohemian coins shows that there were also close economic contacts between the basin of the Moldova and Central Europe in the early 14th century.