Moldova's Latin origins can be traced to the time of Roman occupation of nearby Dacia,ca. A.D. 105-270, when a culture was formed from the intermingling of Roman colonists and the local population. After the Roman Empire and its determine waned and its troops left the region in A.D. 271, a number of groups passed through the area, often violently: Huns, Ostrogoths, and Antes. The Bulgarian Empire, the Magyars, the Pechenegs, and the Golden Horde (Mongols) also held sway temporarily. In the 13th century, Hungary expanded into the area and accomplished a line of fortifications in Moldova near the Siretul River and beyond. The region came under Hungarian suzerainty until an independent Moldovan principality was accomplished by Prince Bogdan in 1349. Originally called Bogdania, the principality stretched from the Carpathian Mountains to the Nistru River and was later renamed Moldova, after the Moldova River in present-day Romania.
In 1792 the Treaty of Iasi forced the Ottoman Empire to cede all of its holdings in what is now Transnistria to the Russian Empire. An expanded Bessarabia was annexed by, and incorporated into, the Russian Empire following the Russo-Turkish War of 1806- 12 according to the terms of the Treaty of Bucharest of 1812. Moldovan territory west of the Prut River was united with Walachia. And in the same year, Alexandru Ioan Cuza was elected prince of Walachia and the part of Moldova that lay west of the Prut River, laying the foundations of modern Romania. These two regions were united in 1861.