In 1814, the duchies were given to Napoleon's Habsburg wife, Marie-Louise, styled Maria-Luigia, who ruled them for the rest of her life. After Maria-Luigia's death in 1847, the Duchy was restored to the Bourbon-Parma line, which had been ruling the tiny Duchy of Lucca. Guastalla was ceded to Modena. The Bourbons ruled until 1859, when they were driven out by a revolution following the French and Sardinian victory in the war against Austria (called Austrian War in France and Second War of Independence in Italy).