From 1767 to 1810, except for a brief period during the French Revolution when the inhabitants set up a government virtually independent of France, the island was controlled by officials appointed by the French government. Jacques-Henri Bernardin de Saint-Pierre lived on the island from 1768 to 1771, then went back to France, where he wrote ''Paul et Virginie'', a love story that made the Isle de France famous wherever the French language was spoken. In 1796 the settlers broke away from French control when the government in Paris attempted to abolish slavery. Two famous French governors were the Vicomte de Souillac (who constructed the Chaussée in Port Louis and encouraged farmers to settle in the district of Savanne) and Antoine Bruni d'Entrecasteaux (who saw to it that the French in the Indian Ocean should have their headquarters in Mauritius instead of Pondicherry in India). Charles Mathieu Isidore Decaen was a successful general in the French Revolutionary Wars and, in some ways, a rival of Napoléon I. He ruled as Governor of Isle de France and Réunion from 1803 to 1810. British naval cartographer and explorer Matthew Flinders was arrested and detained by General Decaen on the island from 1803 to 1810, in contravention of an order from Napoléon. During the Napoleonic Wars, Mauritius became a base from which French corsairs organised successful raids on British commercial ships. The raids continued until 1810, when a Royal Navy expedition led by Commodore Josias Rowley, R.N., an Anglo-Irish aristocrat, was sent to capture the island. Despite winning the Battle of Grand Port, the only French naval victory over the British during these wars, the French could not prevent the British from landing at Cap Malheureux three months later. They formally surrendered the island on the fifth day of the invasion, 3 December 1810, on terms allowing settlers to keep their land and property and to use the French language and law of France in criminal and civil matters. Under British rule, the island's name reverted to Mauritius. The swift conquest of Mauritius was fictionalised in the novel ''The Mauritius Command'' by Patrick O'Brian, first published in 1977.