After a training course, from 1862 and for five years, Giovagnoli was a professor of literary subjects at the School for non-commissioned officers, an activity that he interrupted in 1866 to take part in Third War of Independence; resigned from the army, together with his brothers he joined the Garibaldian ranks in the unfortunate "Campaign of the Roman Agro for the liberation of Rome, an enterprise of the Roman Agro".