History of Corsica dislodge Paoli were futile, in 1764 by secret treaty Genoa sold Corsica to the Duc de Choiseul, then minister of the French Navy, who bought it on behalf of the crown. On the quiet, French troops gradually replaced Genoese in the citadels. In 1768, after preparations had been made, an open treaty with Genoa ceded Corsica to France in perpetuity with no possibility of retraction and the Duc appointed a Corsican supporter, Buttafuoco, as administrator. The island rose in revolt. Paoli fought a guerrilla war against fresh French troops under their commander, Comte de Marbeuf, but was defeated in the
Corsica French from the island and established an Anglo-Corsican Kingdom. Following Spain's entry into the war, the British decided to withdraw from Corsica in 1796. Corsica returned to French rule. Despite being the birthplace of the Emperor, who had supported Paoli in his youth, the island was neglected by Napoleon's government. In 1814, near the end of the Napoleonic Wars, Corsica was briefly occupied again by British troops. The Treaty of Bastia gave the British crown sovereignty over the island, but it was later repudiated by Lord Castlereagh who insisted that the island should be returned to a restored French monarchy.