Algeria, officially the People's Democratic Republic of Algeria, is a country in the Maghreb region of North Africa. Spanning over 2,381,741 square kilometres (919,595 sq mi), it is the largest country in Africa and the tenth largest in the world. It is bordered to the northeast by Tunisia; to the east by Libya; to the southeast by Niger; to the southwest by Mali, Mauritania, and Western Sahara; to the west by Morocco; and to the north by the Mediterranean Sea. With a population of over 47 million, Algeria is the tenth-most populous country in Africa. Its capital and largest city is Algiers.
Algeria's territory has been a crossroads of cultures and civilizations for millennia, shaped first by indigenous Amazigh societies, including the Numidians, whose kingdom became one of the earliest major states in the region, as well as by Phoenician, Roman, Vandal, and Byzantine influences. From the 7th century onward, the spread of Islam and the arrival of Arab tribes gradually transformed the region's linguistic, religious, and cultural landscape, contributing to the development of a distinct Algerian identity rooted in both Arab-Islamic and Amazigh heritage. Between the 8th and 15th centuries, Algeria was ruled by a succession of local Islamic dynasties including Rustamids, Fatimids, Zirids, Hammadids, Almohads and Zayyanids . In 1516, the Regency of Algiers was established, gradually emerging as a largely autonomous state owing nominal allegiance to the Ottoman Empire. After nearly three centuries as a major power in the Mediterranean, the country was invaded by France in 1830 and formally annexed in 1848, though it was not fully conquered and pacified until 1903. French rule brought mass European settlement that displaced the local population; by mid-1870, indigenous Algerians declined by up to a third due to warfare, disease, and starvation. French colonization faced continuous Algerian resistance, from Emir Abdelkader's campaigns and the Mokrani Revolt to the rise of nationalist movements in the 20th century. The Sétif and Guelma massacre in 1945 catalysed local resistance that culminated in the outbreak of the Algerian War in 1954. Algeria gained independence in 1962. It descended into a bloody civil war from 1992 to 2002, remaining in an official state of emergency until the 2010–2012 Algerian protests during the Arab Spring.
Algeria has a semi-arid climate, with the Sahara desert dominating most of the territory except for its fertile and mountainous north, where most of the population is concentrated. Its official languages are Arabic and Tamazight, while the vast majority of the population speak the Algerian dialect of Arabic. The usage of French persists, especially in media, education, and certain administrative matters, but has no official status. Most Algerians identify as Arabs, while Berbers form a sizeable minority. Sunni Islam is the official religion and practised by 99 percent of the population.
Algeria is a semi-presidential republic composed of 69 provinces (wilayas) and 1,541 communes. It is a regional power in North Africa and a middle power in global affairs, with the largest military budget in Africa. As of 2025, Algeria has the highest Human Development Index in continental Africa, and the third largest economy in Africa, due mostly to its large petroleum and natural gas reserves, which are the sixteenth and ninth largest in the world, respectively. Sonatrach, the national oil company, is the largest company in Africa and a major supplier of natural gas to Europe. Algeria is a member of the African Union, the Arab League, the OIC, OPEC, the United Nations, and the Arab Maghreb Union, of which it is a founding member.