The territorial evolution of Romania () includes all the changes in the country's borders from its formation to the present day. The precedents of Romania as an independent state can be traced back to the 14th century, when the principalities of Wallachia and Moldavia were founded. Wallachia during its history lost several portions of its territory, either to the Ottomans or the Habsburgs. However, this land would be later essentially recovered in its entirety. Moldavia, on the other hand, suffered great territorial losses. In 1775, the Habsburgs invaded Bukovina and annexed it, and in 1812, the Russian Empire took control of Bessarabia. Both territories were later exposed to powerful colonization policies. The principalities declared unification in 1859 as the Principality of Romania. This new state sought independence from the Ottoman Empire's vassalage, and in 1878, it fought a war against it alongside Russia. However, the latter would annex Southern Bessarabia, which was recovered decades before. Romania received Northern Dobruja as compensation, and would wage a war for the southern part against Bulgaria in 1913.