Shortly after the July Monarchy of Louis Philippe I was overthrown in the Revolution of 1848, the new government of the Second Republic ended Algeria's status as a colony and declared it in the 1848 Constitution an integral part of France. Three civil departements — Alger, Oran, and Constantine — were organized under a civilian government.