Additionally, the French Invasion of Algiers in 1830 was very unpopular domestically and contributed to low army morale. Louis Philippe I was a pacifist and did not want to defy public opinion by using the French military, nor did he wish to upset his military command by endangering French lives. To overcome these problems, the idea of a Foreign Legion, solely consisting of foreign troops recruited for a specific purpose and organised in a dedicated corps, was born.