In the year 1751 a treaty had been made between Austria and Piedmont by which the former granted to the latter the right of sending through Lombardy the salt which they were selling to the Republic of Venice. In consideration of this boon the King of Sardinia renounced his trade with the Swiss cantons; and the treaty was renewed in 1815, after Venice had passed under the Austrian rule. In 1846 Ticino, desiring to open a trade in salt with Marseilles, asked the Piedmontese Government to allow them to transmit their salt through Piedmont, and Charles Albert consented.

The Austrian Government had for some time past looked with suspicion on Charles Albert. Metternich had never forgotten his passing outburst of Liberalism in 1821; and the continual search of the Italian Liberals for some leader in the War of Independence was naturally drawing people's eyes to Piedmont. Few, and comparatively unimportant, as were the reforms that he introduced, they were enough to increase the suspicions of Metternich; and, reformer or not, the King of Sardinia was necessarily an enemy to the House of Austria. Moreover, Charles Albert had recently given a tolerably clear hint of his own feelings; for he had struck a medal representing a lion (the well-known badge of the House of Savoy) trampling on an eagle; and on the reverse side of the medal appeared, "J'attends mon astre."

The concession to the Canton Ticino lighted the spark which had been smouldering in the breasts of the Austrian rulers. For of all the States of Europe, this little canton had become specially obnoxious to Austria in the last few years; and not long before this Metternich and Charles Albert had worked together to stamp out its freedom, and deprive it of the right of sheltering those Italian exiles who were dear to the Italian-Swiss from similarity in race and language. Metternich had failed in that effort, and the Liberals had risen in the canton and overthrown the Conservative Government and Austrian influence together. Any sign, therefore, of friendliness shown by Charles Albert to the Ticinese was a special cause of alarm to the Austrians. They declared at once that the treaty of 1751 had been violated; in April, 1846, they increased the custom duties on the wine sent from Piedmont to Lombardy; and in order to mark the hostility of the Act more plainly the same decree declared that there would be no change with regard to the wines coming from several of the other Italian States.

Solaro della Margherita, though his Conservatism naturally inclined him to sympathize with the Austrian Government, was a man who valued the independence and dignity of Piedmont; and he therefore consented to Charles Albert's proposal at once to lower the duties between Piedmont and France, in order to facilitate the commerce between those countries. The meaning of this act could not be misunderstood; and the Austrian ambassador, alarmed at the sudden defiance, made a proposal to recall the duty on Piedmontese wines, on condition that Charles Albert would consent to withdraw his concession to Ticino. Solaro della Margherita, in his anxiety for a friendly understanding with Austria, did not perceive that such a concession would give up the whole principle at stake, since it would admit the right of Austria to forbid Charles Albert to make what terms he pleased with the canton; so Solaro actually urged the King to agree to the proposal. But Charles Albert stood firm, and, greatly to Margherita's horror, D'Azeglio succeeded in persuading the people to get up a demonstration in Turin, at which cries were heard of "Long live the King of Italy!"

Charles Albert, however, though showing some signs of his usual irresolution, did not draw back from his policy of hostility to Austria; and he set himself to promote a railway which should connect Lombardy and Venetia more closely with Piedmont. The Austrians made some difficulty with regard to this railway, and it was on this occasion apparently that the point was carried against the rulers of Lombardy, to a great extent, by the energies of a Venetian lawyer, Daniele Manin, a name afterwards memorable in the records of Venice. In the meantime D'Azeglio had been working hard to convince the rest of Italy that Charles Albert was preparing to put himself at the head of an Italian movement and to attack Lombardy. In Tuscany Professor Montanelli had already formed a Society for promoting the unity of Italy. Demonstrations were being made against the Jesuits, and petitions for changes in taxation and education were drawn up.

But it was in the Papal States that D'Azeglio most hoped to gain ground; and in Forli he came in contact with Aurelio Saffi, who, with D'Azeglio's encouragement, prepared an address from the people of Forli to one of the clerical rulers, calling attention to the growth of Italian feeling and the desire for action against the foreigner. The authorities became alarmed and Saffi's arrest and imprisonment were determined on, when the death of Gregory XVI. suddenly changed the whole position of affairs; and Charles Albert's newly-won fame was for a time dimmed by that of another hero of the popular imagination; while Gioberti's teaching, hitherto admired only in a small circle, and laughed at by many, was suddenly accepted as the utterance of an inspired prophet, and as embodying the conception of a profound statesman.

The state of Roman government at the death of Gregory XVI. was as follows:—The management of affairs was entirely in the hands of cardinals, or of laymen appointed by the Pope. The nobles and the rich were indeed conciliated to some extent by appointments which seemed a concession to lay feeling. The provincial councils, nominated by the Pope, laid taxes partly on property and partly on articles of consumption. The study of political economy was prohibited in the schools; and the study of law and medicine was but little provided for. The press was under a triple censorship, that of the Inquisition, of the Bishop, and of the Governor of the province. The police, though vigorous in repressing political conspirators, were utterly unable to check highway robbery. In the tribunals which were administered by the clergy, the grossest corruptions prevailed. As a natural result of all this, the ablest and best men of the States were to be found, not in Rome, but some in France, some in Tuscany, and some in Piedmont. The government of Rome and its immediate neighbourhood was corrupt; and the government of the Legations in some cases became so cruel as to excite shame even in the Pope himself. And Monsignore Savelli, one of the worst of these tyrants, had been guilty of such a combination of corruption and cruelty that Gregory had been compelled to remove him from office.

Such was the state of affairs when Gregory XVI. died. Tremendous expectation was roused in the different provinces of the Papal States; an insurrection broke out in Ancona; and a colonel, who had distinguished himself for cruelty in that town, was killed. The cardinals at once despatched Savelli to suppress the rising. In the meantime the Conclave met, and the ambassadors of the different Powers began to intrigue for their respective candidates. Cardinal Lambruschini was one of the most powerful members of the sacred college; but he was hated for his injustice and partisan distribution of offices; and no sooner had the Conclave opened than attacks were made on him by Cardinal Micara, on this very ground. Lambruschini had been appointed by the influence of the Austrian Court, and might have been supposed to be their candidate. But whether it were that even the Austrians desired certain concessions to the policy of reform, which they had themselves supported after the rising of 1831, or whether it were that their influence was weakened by the events which had recently occurred in Galicia, they do not seem to have used very great pressure on behalf of Lambruschini.

On the other hand, there had recently arrived in Rome, as French ambassador, that same Pellegrino Rossi who had formerly been driven into exile by the success of the Austrians in 1815, who had contributed to the Conciliatore of Confalonieri, and who had played so important and influential a part among the Italian exiles in Paris. Rossi declared in favour of reform in the church, and demanded the election of someone who both wished and knew how to reform prudently and efficiently. The person naturally marked out as the candidate of the Liberals was Cardinal Gizzi, who had been known for milder government than that of any of the other Cardinals, and who had been singled out for exceptional praise by Massimo D'Azeglio. But where a bitter conflict of interests arises between the leading candidates, it is only natural that some unknown man should slip in; and, as the reformers were probably more in earnest and more united than the majority of the opponents of reform, other Liberal candidates were withdrawn; Giovanni Mastai Ferretti was elected Pope on June 16th, 1846, and, out of respect for Pius VII., took the name of Pius IX.

He was then fifty-four years old and had been originally intended for the Papal guard; but, being liable to epileptic fits, he had been refused admission. He had thereupon become a priest, and had, as already mentioned, distinguished himself in 1831 by the honesty with which he had carried out the terms of the surrender of Imola. He was so little known, however, to the general public that a rumour arose, after his election, that it was really Cardinal Gizzi who had been chosen. Nor were his future opponents startled at the choice. Princess Metternich wrote of him in her diary that he was a man of exemplary piety, "toute fois sans être exalté." Nor was it till a month later that Pio Nono took the step which was the foundation of his future popularity. It was then that he issued a general amnesty in favour of all those who had been condemned for political offences. The amnesty, indeed, was carefully guarded; for only those were admitted to it who would sign a declaration confessing their previous offences, and promising future improvement. Mamiani and others refused to sign this declaration, and it would have been obvious to anyone who had thought over the question that this was a demand which could not be accepted by any men of spirit and consistency. But men's minds had been excited by previous events; and the teaching of Gioberti led, not only the Romans, but Italians in all parts of the peninsula, to place a meaning upon this amnesty which was certainly not intended by the Pope himself. This belief in the reforming intentions of the Pope was further increased by the bitter hostility that he excited in that extreme party which had thriven under Gregory XVI., and which was urged on by Lambruschini, who, in his disappointed ambition, began to throw discredit on the election of his rival and to plot against his authority.