After holding various posts in government and parliament alike, Cavour became premier or prime minister of Piedmont-Sardinia in 1852. As prime minister, Cavour undertook many reforms which many deemed controversial at the time. His reforms largely liberalised the state, and also modernized it in many ways. Prior to Cavour's becoming prime minister, Piedmont-Sardinia had introduced reforms which ran counter to the Church, the most striking example of which was the abolishment in 1848 of ecclesiastical courts, as well as the introduction of civil marriage (as opposed to Church marriage). These policies were met with protests from the pope at the time, Pope Pius IX. What was started in 1848 was continued with Cavour during his time as premier: a new policy by Cavour ordered the closure of half of the monastic houses within Piedmont-Sardinian territory. Cavour also conducted other reforms, including modernization of transport by building many miles of railway (Piedmont alone had over 800km of railroads at one point), economic alterations (reducing customs duties, founding state saving banks) and agricultural improvements, military development (the number of Piedmontese troops increased from 5,000 to 50,000).
It