Quanta cura was a papal encyclical that was prompted by the September Convention of 1864 agreement between the then newly emerging Kingdom of Italy and the Second French Empire of Napoleon III. France had previously occupied Rome with French troops in order to prevent the Kingdom of Italy from defeating the Papal States with the Capture of Rome, thereby blocking an Italian military action that would complete the unification of the Kingdom of Italy on the Italian Peninsula. While viewed a necessary component of Italian Unification by Italians supporting the Risorgimento, France agreed to the complete withdraw its military garrison from Rome primarily as defensive movement of her troops back into France in anticipation of a military conflict on French soil that would later become known as the Franco-Prussian War of 1870.
Pius IX closed the Quanta cura encyclical with a plenary indulgence by declaring a Jubilee year for 1865.
Pius IX's 1864 encyclical specifically marks for condemnation that:
..."liberty of conscience and worship is each man's personal right, which ought to be legally proclaimed and asserted in every rightly constituted society; and that a right resides in the citizens to an absolute liberty, which should be restrained by no authority whether ecclesiastical or civil, whereby they may be able openly and publicly to manifest and declare any of their ideas whatever, either by word of mouth, by the press, or in any other way."
Quanta cura also condemns several other propositions, notably:
These propositions were aimed at anticlerical governments in various European countries, which had been recently and would in the next few years be secularizing education (sometimes by taking over Catholic schools rather than starting their own competing public schools) and suppressing religious orders, confiscating their property. (Hales 1958)