The story of Algeria is a story of resistance. It is etched into the desert landscapes of the vast Sahara and woven through the narrow, winding streets of the Casbah in Algiers. It is a history defined by a succession of invaders and the resilience of a people who, time and again, have asserted their own identity against formidable odds. From the ancient Berber kingdoms to the long and brutal struggle for independence from France, the Algerian path has been one of conflict, adaptation, and an unyielding quest for sovereignty.
Long before the arrival of Phoenician traders, Roman legionaries, or Arab armies, the land that is now Algeria was the domain of the Imazighen, or Berbers, the indigenous peoples of North Africa. Their presence is ancient, marked by distinctive languages, traditions, and a deep connection to the often-harsh environment. They were not a single, unified entity but a collection of tribes and confederations, farmers in the fertile coastal plains and skilled nomadic pastoralists in the interior. In the third century BCE, two powerful Berber kingdoms emerged: the Masaesyli in the west and the Massylii in the east. It was a leader of the Massylii, Masinissa, who would play a decisive role in the great power struggles of the Mediterranean, siding with Rome against Carthage in the Punic Wars and uniting the kingdoms into a single, powerful Numidian state that flourished for over a century. Numidian cavalry, renowned for its speed and skill, became a legendary component of the Roman military machine.
Roman influence, however, eventually turned to direct control. Following a period as a client state, the emperor Claudius formally annexed the region around 44 CE, dividing it into two provinces: Mauretania Caesariensis, with its capital at modern-day Cherchell, and Mauretania Tingitana further to the west. Roman rule brought centuries of relative stability and prosperity to the coastal regions. Cities like Timgad, Djémila, and Tipasa were built, complete with forums, theaters, and triumphal arches, their ruins today standing as impressive testaments to a period of deep integration into the Roman world. Agriculture flourished, with North Africa becoming a vital source of grain for the empire. Yet, Roman control was largely confined to the coastal plains and the high plateaus. In the mountainous interior and the Saharan fringes, Berber tribes maintained their autonomy, periodically clashing with the legions at the empire's edge.
As the Western Roman Empire crumbled in the 5th century, a new power swept across the Mediterranean. In 429, some 80,000 Vandals, a Germanic tribe, crossed from Spain into North Africa. Led by their king, Gaiseric, they carved out a kingdom, capturing the great city of Carthage in 439 and establishing a naval power that would even sack Rome itself in 455. The Vandal period was one of disruption. Their rule was often harsh, particularly towards the Catholic population, as the Vandals adhered to the Arian form of Christianity. Their kingdom, however, proved to be short-lived. In 533, the Byzantine general Belisarius landed in North Africa with a powerful army, swiftly defeating the Vandals and restoring the region to Roman (now Eastern Roman, or Byzantine) rule within a year. Byzantine control, however, was tenuous. Hampered by military mutinies, official corruption, and the vast distances from their capital in Constantinople, their authority was largely limited to the coastal areas, with many inland regions reverting to the control of independent Berber kingdoms.
The 7th century brought a new and transformative force from the east: the armies of Islam. The Arab conquest of the Maghreb was a protracted affair, beginning in the 640s and taking nearly 70 years to complete. Initial raids gave way to full-scale invasion under the Umayyad Caliphate. The Byzantine forces were defeated, and Arab armies, led by figures like Uqba ibn Nafi, pushed west across Algeria, reaching the Atlantic by 682. The conquest was not without fierce resistance from the Berber tribes. Leaders such as Kusayla and the legendary warrior queen Dihya, known as al-Kahina, led powerful, though ultimately unsuccessful, campaigns against the invaders. The conquest, however, was not simply one of military subjugation. Over time, the majority of the Berber population converted to Islam, and the Arabic language began to spread, profoundly reshaping the cultural and religious landscape. The synthesis of Arab and Berber cultures would come to define the Maghreb.
For the next several centuries, Algeria was ruled by a succession of Islamic dynasties. After breaking away from the Umayyad Caliphate following the Berber Revolt of 740, the region saw the rise of local powers. Dynasties like the Zirids and the Hammadids established sophisticated kingdoms, founding new capitals and fostering a vibrant cultural and intellectual life. They were followed by the Almoravids and then the Almohads, powerful Berber empires that, at their height, controlled a vast territory stretching from Spain to Libya. During this period, the Kingdom of Tlemcen, under the Zayanid dynasty, controlled the central Maghreb for over 300 years, maintaining a precarious hold over the region until the arrival of a new power in the 16th century.
The arrival of the Ottoman Turks was spurred by the growing power of Spain, which had established several coastal strongholds in North Africa. The privateer brothers Aruj and Hayreddin, known in Europe as the Barbarossas, offered their services to the Ottoman Sultan. In 1516, they established what would become the Regency of Algiers, a semi-independent state that was nominally a province of the Ottoman Empire but in practice enjoyed a great deal of autonomy. For three centuries, Algiers became a formidable naval power in the Mediterranean. Its corsairs, the famed Barbary pirates, waged a maritime holy war, capturing European ships and taking Christian captives for ransom or for sale in the slave markets. This activity, which formed the backbone of the Regency's economy, brought great wealth to the city but also provoked numerous punitive expeditions from European powers and the young United States. The city of Algiers itself was transformed into a heavily fortified stronghold, its casbah a maze of narrow streets and defensive structures. The Regency was governed by a military elite of Janissaries, known as the Odjak, and ruled by a series of Pashas, Aghas, and finally Deys, who were elected by their fellow officers.
The Regency's power began to wane in the early 19th century as European navies grew stronger and the profitability of piracy declined. Internally, the state was weakened by political intrigue and revolts. It was a diplomatic slight, however, that provided the pretext for its final downfall. In 1827, in an argument over an unpaid debt for a shipment of wheat supplied to the French army decades earlier, the Dey, Hussein, struck the French consul on the arm with his fly-whisk. King Charles X of France, seeking to bolster his own flagging popularity at home with a military victory, seized upon the "Fan Affair." After a three-year blockade, France launched a full-scale invasion. On June 14, 1830, a French expeditionary force of 34,000 soldiers landed west of Algiers. The city surrendered on July 5th.
The French had expected a swift and easy conquest, but they were sorely mistaken. What followed was a long and exceptionally brutal period of pacification and colonization that would last for decades. French forces met fierce resistance from the interior, most notably from the charismatic scholar and warrior Emir Abdelkader. From 1832 to 1847, Abdelkader led a powerful confederation of tribes in a skillful guerrilla war against the French, establishing a nascent Algerian state in the western and central parts of the country. The French response was ruthless, employing "scorched earth" tactics that involved the massacre of civilians, the destruction of crops, and the confiscation of land. Eventually, overwhelmed by superior French numbers and firepower, Abdelkader was forced to surrender.
With the defeat of Abdelkader, France solidified its control, but the nature of its rule was fundamentally different from that in many of its other colonies. Algeria was not simply a colony; it was legally and administratively incorporated into France itself, divided into three departments. This, however, was a legal fiction that masked a deeply divided reality. A large population of European settlers, known as colons or pieds-noirs (black feet), began to arrive, encouraged by the French government to seize the best agricultural land. By the mid-20th century, they numbered around one million and dominated the political and economic life of the country. The indigenous Muslim population, meanwhile, was relegated to a second-class status. They were French subjects, not citizens, denied political rights, and subjected to a separate and discriminatory legal code.
The simmering resentment of the Muslim population occasionally boiled over into open revolt, but it was not until the mid-20th century that a coordinated, modern nationalist movement began to take shape. The event that is often seen as a turning point was the Sétif massacre of May 8, 1945. On the day that Europe celebrated its victory over Nazi Germany, Algerian nationalists held a demonstration to demand independence. The protest turned violent, and in the subsequent crackdown by French authorities and settler militias, thousands of Muslims were killed. The event radicalized a generation of Algerians and convinced many that independence could only be won through armed struggle.
On November 1, 1954, a new organization, the National Liberation Front (FLN), launched a coordinated series of attacks across Algeria, signaling the beginning of the Algerian War of Independence. It was a conflict of extraordinary brutality, characterized by guerrilla warfare, terrorism, and the widespread use of torture by both sides. The FLN and its military wing, the National Liberation Army (ALN), targeted not only French military and police but also civilians, both European and Muslim, who were deemed collaborators. The French army responded with a massive counter-insurgency campaign, deploying hundreds of thousands of troops and employing tactics of collective punishment and systematic torture.
One of the most intense and infamous episodes of the war was the Battle of Algiers, which began in late 1956. The FLN, under commanders like Larbi Ben M'hidi and Saadi Yacef, launched a campaign of urban terrorism in the capital, targeting cafés, restaurants, and other public places frequented by Europeans. The French response was to give full powers to General Jacques Massu and his elite paratroopers, who were tasked with dismantling the FLN's network in the city. Through a systematic campaign of arrests, interrogations under torture, and extrajudicial killings, the French military succeeded in breaking the FLN's organization in Algiers. The battle was a tactical victory for the French, but a strategic disaster. The brutal methods employed exposed the moral bankruptcy of the French colonial project, sparking outrage in France and around the world and galvanizing support for the Algerian cause.
The war dragged on for nearly eight years, causing immense suffering and deep divisions, not just in Algeria but within France itself. The conflict precipitated the collapse of the French Fourth Republic and the return to power of Charles de Gaulle. Recognizing that the war was unwinnable and was tearing France apart, de Gaulle began a process of disengagement, opening negotiations with the FLN. This move was fiercely opposed by many in the French military and the pied-noir community, who formed a terrorist organization, the Organisation Armée Secrète (OAS), to fight against Algerian independence, launching a campaign of bombings and assassinations in both Algeria and France.
Despite the violence, negotiations between the French government and the FLN's provisional government concluded with the signing of the Évian Accords on March 18, 1962. The accords established a ceasefire and laid out the terms for Algerian self-determination. In a referendum on July 1, 1962, the Algerian people voted overwhelmingly for independence, which was formally declared on July 5th. The end of the war triggered a massive and panicked exodus of the pieds-noirs, with some 900,000 fleeing to France in the space of a few months. It also saw brutal reprisals against the harkis, Algerians who had served as auxiliaries in the French army, thousands of whom were massacred by the victorious FLN.
Independence was won, but the new nation faced enormous challenges. The war had left deep scars, claiming the lives of hundreds of thousands of Algerians. The country was politically fractured, and the FLN, which had been a broad front during the war, quickly consolidated its power, establishing a one-party state. Ahmed Ben Bella became the first president, but he was overthrown in a bloodless coup in 1965 by his defense minister, Colonel Houari Boumediene. Boumediene established an authoritarian, socialist-oriented government. He embarked on a program of state-led industrialization, nationalizing the crucial oil and gas industry in 1971, and pursued a policy of non-alignment on the international stage, becoming a prominent voice for the developing world.
Boumediene ruled until his death in 1978. His successors continued the FLN's one-party rule, but by the 1980s, the state-controlled economy was stagnating, and social unrest was growing. A sharp drop in oil prices in the mid-1980s plunged the country into a severe economic crisis. In October 1988, widespread riots erupted, forcing the government to introduce political reforms and a new constitution that allowed for a multi-party system. The first free elections were held in 1991, and the Islamic Salvation Front (FIS), a newly formed Islamist party, won a decisive victory in the first round.
Fearing the establishment of an Islamic state, the Algerian military intervened, canceling the elections, forcing the president to resign, and banning the FIS. This move plunged Algeria into a devastating civil war that would last for the better part of a decade. The conflict, known as the "Black Decade," was fought between the military-backed government and various Islamist guerrilla groups. It was a period of horrific violence, marked by massacres, bombings, and assassinations, which left an estimated 200,000 people dead.
The violence began to subside in the late 1990s, particularly after Abdelaziz Bouteflika, a former foreign minister under Boumediene, was elected president in 1999. His government offered amnesty to many former militants, and a national referendum on a "Civil Concord" plan helped to bring the conflict to a close. Bouteflika would go on to dominate Algerian politics for the next two decades, winning four consecutive elections. His long rule provided a degree of stability, and high oil prices fueled economic growth. However, it was also characterized by political stagnation, corruption, and a lack of economic diversification.
By 2019, patience with the aging and ailing president had run out. When Bouteflika announced his intention to run for a fifth term, it sparked massive, peaceful protests across the country. This leaderless, youth-driven movement, known as the Hirak, demanded not just Bouteflika's resignation but a fundamental overhaul of the entire political system that had been in place since independence. The sheer scale and persistence of the protests forced the military to intervene, and Bouteflika resigned in April 2019. The Hirak movement represented a profound moment of national reawakening, a new chapter in Algeria's long history of struggle for self-determination. The journey that began in the mountains of Numidia and continued through the long night of colonial rule and the traumas of civil war had entered a new, uncertain, but hopeful phase.