His father, also named Rainer, the seventh son of the Emperor Leopold II.
When Galen again attacked Holland six years later he was in alliance with Louis, but he soon deserted his new friend, and fought for the emperor Leopold I.
On being liberated he returned to Tuscany, and the grand duke Leopold II, knowing that he was popular with the masses, sent him to Leghorn to quell the disturbances.
In October, Leopold, much against his inclinations, asked him to form a ministry.
But Leopold, alarmed at the turn affairs were taking, fled from Florence, and Montanelli, Guerrazzi and Mazzini were elected "triumvirs" of Tuscany.