In April 1877, he was named minister of war, serving until August, when he was made commander of operations during the Romanian War of Independence.