Moldova was founded as the medieval Principality of Moldavia in 1359. This principality is considered the medieval precursor of modern Moldova and Romania. The foundation of Moldavia is attributed to Romanian noblemen, particularly Bogdan I of Cuhea, who became the first independent prince of Moldavia by rejecting Hungarian authority in 1359. The principality originally covered the area between the Carpathian Mountains and the Dniester River, encompassing current-day Moldova, parts of Romania, and Ukraine. Moldova, as a modern independent country, declared its independence from the Soviet Union on August 27, 1991, following the dissolution of the USSR. Thus, the medieval principality was established in 1359, and the contemporary nation-state of Moldova emerged as an independent republic in 1991.