In 1837, after a decade of negotiations, Crown Prince Oscar sold properties attached to the dukedom to Marquis Raffaele de Ferrari of Genoa. The following year, the marquis received the title of Duke of Galliera from Pope Gregory XVI. In 1839, King Charles Albert of Sardinia confirmed the grant to the marquis and added the title of Prince of Lucedio.
With his wife, Maria Brignole-Sale, the new Duke of Galliera had three children, but two of them died young and childless. The third, the famous philatelistPhilipp von Ferrary, renounced the title and the inheritance to which it was linked.