At the end of the year, when the Austrians were approaching Pesth, he asked for the mediation of Mr Stiles, the American envoy.
Garibaldi and a few followers, including his devoted wife Anita, after vainly attempting to reach Venice, where the tricolor still floated, took refuge in the pine forests of Ravenna; the Austrians were seeking him in all directions, and most of his legionaries were captured and shot.
On the outbreak of war in 1859 he was placed in command of the Alpine infantry, defeating the Austrians at Casale on the 8th of May, crossing the Ticino on the 23rd of May, and, after a series of victorious fights, liberating Alpine territory as far as the frontier of Tirol.
On the 3rd of July he defeated the Austrians at Monte Saello, on the 7th at Lodzone, on the 10th at Darso, on the 16th at Condino, on the 19th at Ampola, on the 21st at Bezzecca, but, when on the point of attacking Trent, he was ordered by General Lamarmora to retire.
In 1848 Montanelli served with the Tuscan student volunteers at the battle of Curtatone, where he was wounded and taken prisoner by the Austrians.