The Romanian War of Independence was battled in 1877. It was against the Ottoman Empire. On , Romania and the Russian Empire signed a treaty that allowed Russian troops to pass through Romanian land, so long as the Russians respected the integrity of the Romanians.