Following the Romanian War of Independence in 1877–78, Romania shook off formal Ottoman rule but eventually clashed with its Russian ally over its demand for the Southern Bessarabia region. Ultimately, Romania was awarded Northern Dobruja in exchange for Southern Bessarabia. The Kingdom of Romania subsequently emerged in 1881 with Prince Carol being crowned as King Carol I of Romania.