From 1815 to 1847 it was a Bourbon-Parma duchy. The only reigning dukes of Lucca were Maria Luisa of Spain, who was succeeded by her son Charles II, Duke of Parma in 1824. Meanwhile, the Duchy of Parma had been assigned for life to Marie Louise, Duchess of Parma, the second wife of Napoleon. In accordance with the Treaty of Vienna (1815), upon the death of Marie Louise, Duchess of Parma in 1847, Parma reverted to Charles II, Duke of Parma, while Lucca lost independence and was annexed to the Grand Duchy of Tuscany. As part of Tuscany, it became part of the Kingdom of Sardinia in 1860 and finally part of the Italian State in 1861.