The article is dedicated to the parallels between the Egyptian campaign of Napoleon Bonaparte (1798-1801) and the French invasion to Algeria in 1830, to the comparison of French policy in Egypt and Algeria. The study shows how the experience of the Egyptian campaign was rethought during the African campaign. By analyzing the administrative and religious policies of the French administration and their propaganda, the author comes to the conclusion that both campaigns were inextricably linked: both of them were the result of the development of the Enlightenment ideas of the civilization superiority of Europe. The Egyptian campaign in a certain way served as a matrix for the invasion to Algeria in 1830, although not all of its experience was adopted and even could be adopted because of different political circumstances and the specifics of the objects of the conquest.