Slavery in the French colonies was finally abolished only in 1848, three months after the beginning of the revolution against the July Monarchy. It was in large part the result of the tireless 18-year campaign of Victor Schœlcher. On 3 March 1848, he had been appointed under-secretary of the navy, and caused a decree to be issued by the provisional government which acknowledged the principle of the enfranchisement of the slaves through the French possessions. He also wrote the decree of 27 April 1848 in which the French government announced that slavery was abolished in all of its colonies.