Between the 1870s and 1900, Africa faced military invasions from European. One of the things that led to the idea of colonizing the whole of Africa was the fact that, because of the industrial revolution that took place in Europe in the 19th century, Europans needed raw materials. And thanks to the industrial revolution, Europe will create a huge technological gap with Africa, Asia and Oceania which will allow them to conquer immense territories with very few men. Because of the abundance of natural resources in Africa, it was natural for Europe to look south to extend its industrial growth. By the early twentieth century, only Ethiopia and Liberia were independent, but the rest of Africa had been colonized. Algeria, where Camus lived, was not spared from colonialism. It was colonized by France from 1830 to 1962. (link)
Later, the European imperialist system provoked African political resistance, but also military resistance in colonized countries. Algeria fought for independence from France during the Algerian War, also called Algerian War of Independence (1954–1962).
In Albert Camus’ text “the guest” published during the war, we can see the resemblance between the author and the main character Daru. Albert Camus seems to show his neutrality in the War for independence because of his position in the society. Camus grew up in French Algeria as a “Pied-Noir”, or a black foot in English which meant a Frenchman born in the colony to a lower class family. Therefore, in his life Camus was below the ruling class which was the french colonists, but also as a “pied noir” above the oppressed class which was he native population of Arabs and Berbers. Likewise, Daru seems to be in a middle or “ok” class between oppressors and sufferers. Another similarity with the character is that Camus, as a journalist in Algeria, experienced a drought and saw people suffer from hunger exactly like Daru witness drought and seem to have compassion for people. (link)