The United Principalities of Moldavia and Wallachia (Romanian: Principatele Unite ale Moldovei și Țării Românești), commonly called United Principalities or Wallachia and Moldavia, was the personal union of the Principality of Moldavia and the Principality of Wallachia. The union was formed on 5 February [O.S. 24 January] 1859 when Alexandru Ioan Cuza was elected as the Domnitor (Ruling Prince) of both principalities. Their separate autonomous vassalage in the Ottoman Empire continued with the unification of both principalities. On 3 February [O.S. 22 January] 1862, Moldavia and Wallachia formally united to create the Romanian United Principalities, the core of the Romanian nation state.
In February 1866, Prince Cuza was forced to abdicate and go into exile by a political coalition led by the Liberals; the German prince Karl of Hohenzollern-Sigmaringen was offered the throne and, on 22 May [O.S. 10 May] 1866 he entered Bucharest for the first time. In July the same year, a new constitution came into effect, giving the country the name of Romania; internationally, this name was used only after 1877, since at the time it shared a common foreign policy with the Ottoman Empire. Nominally, the new state remained a vassal of the Ottoman Empire. However, by this time the suzerainty of the Sublime Porte had become a legal fiction. Romania had its own flag and anthem; after 1867, it had its own currency as well.