In 1848, the February revolution caused the abdication of "Citizen King" Louis-Philippe. The Second Republic was proclaimed, with Alphonse de Lamartine as the head of a transitional government. Although Vidocq had always been proud of his reception at the king's court and had boasted about his access to Louis-Philippe, he offered his services to the new government. His task was the surveillance of political opponents such as Louis-Napoléon Bonaparte, the nephew of Napoleon I. Meanwhile, the new government sank into chaos and violence. In the presidential election of 10 December 1848, Lamartine received less than 8,000 votes. Vidocq presented himself as a candidate in the 2nd Arrondissement but received only one vote. The clear winner, and thus president of the Second Republic, was Louis-Napoléon Bonaparte, who did not respond to Vidocq's offer to work for him.