 In 1775 the king, who in 1718 had swapped his sovereignty of Sicily for the Kingdom of Sardinia, destroyed all that remained of the ancient liberties of the commune.Conquered in 1792 by the armies of the First French Republic, the County of Nice continued to be part of France until 1814; but after that date it reverted to the Kingdom of Piedmont-Sardinia.After the Treaty of Turin was signed in 1860 between the Sardinian king and Napoleon III, the County was again and definitively ceded to France as a territorial reward for French assistance in the Second Italian War of Independence against Austria, which saw Lombardy united with Piedmont-Sardinia.