Question: when did algeria became a department of france
Answer: Shortly after Louis Philippe 's constitutional monarchy was overthrown in the revolution of 1848 , the new government of the Second Republic ended Algeria 's status as a colony and declared in the 1848 Constitution the occupied lands an integral part of France .