He was born at Turin in a rich and noble family: his father was a Marquis. In 1822 he graduated in the Military Academy of Turin; then began a military career, which led him to become general in 1856. In the Kingdom of Sardinia he was twice Minister of War in the governments led by Massimo D'Azeglio and Camillo Cavour.