The Romanian War of Independence was a military conflict from 1877 to 1878. Fought as a part of the larger Russo-Turkish War, the conflict saw the Principality of Romania, at the time a nominal vassal of the Ottoman Empire, gain its independence from the Sublime Porte.