The development of Western race theories took place in a historical situation where most Western nations were still profiting from the enslavement of Africans and therefore had an economical interest in portraying the inhabitants of sub-Saharan Africa as an inferior race. A significant change in Western views on Africans came about when Napoleon's 1798 invasion of Egypt drew attention to the impressive achievements of Ancient Egypt, which could hardly be reconciled with the theory of Africans being inferior. In this context, many of the works published on Egypt after Napoleon's expedition "seemed to have had as their main purpose an attempt to prove in some way that the Egyptians were not Negroes", but belonged to a "Hamitic race", which was seen as a subgroup of the "Caucasian race". Thus the high civilization of Ancient Egypt could be separated from the allegedly inferior African "race".