Algeria, a gateway between Africa and Europe, has been battered by violence over the past half-century.
More than a million Algerians were killed in the fight for independence from France in 1962, and the country has recently emerged from a brutal internal conflict that followed scrapped elections in 1992.
The Sahara desert covers more than four-fifths of the land. Oil and gas reserves were discovered there in the 1950s, but most Algerians live along the northern coast. The country supplies large amounts of natural gas to Europe and energy exports are the backbone of the economy. Desert near Tamanrasset in Algeria Algeria includes large areas of the Sahara desert
Algeria was originally inhabited by Berbers until the Arabs conquered North Africa in the 7th century. Based mainly in the mountainous regions, the Berbers resisted the spread of Arab influence, managing to preserve much of their language and culture. They make up some 30% of the population. Continue reading the main story At a glance
Politics: President Bouteflika led his country out of the civil war that broke out when Islamists were denied an election victory; since the 1990s, the Islamist insurgency has turned into an Al-Qaeda-led bombing campaign Economy: Algeria is a key oil and gas supplier International: Tension persists between Algeria and Morocco over the Western Sahara, where nomadic Saharans are seeking self-determination
Country profiles compiled by BBC Monitoring
Part of the Turkish Ottoman empire from the 16th century, Algeria was conquered by the French in 1830 and was given the status of a "departement". The struggle for independence began in 1954 headed by the National Liberation Front, which came to power on independence in 1962.
In the 1990s Algerian politics was dominated by the struggle involving the military and Islamist militants. In 1992 a general election won by an Islamist party was annulled, heralding a bloody civil war in which more than 150,000 people died.
An amnesty in 1999 led many rebels to lay down their arms.
Although political violence in Algeria has declined since the 1990s, the country has been shaken by by a campaign of bombings carried out by a group calling itself al-Qaeda in the Land of Islamic Maghreb (AQLIM). Economy improves
The group was formerly known as the Salafist Group for Call and Combat, and has its roots in an Islamist militia involved in the civil war in the 1990s.
Although experts doubt whether AQLIM has direct operational links with al-Qaeda elsewhere, its methods - which include suicide bombings - and its choice of targets, such as foreign workers and the UN headquarters in Algiers, follow the al-Qaeda method. Islamist groups throughout the Sahara region are linking up under the umbrella of the new movement, reinforced by arms obtained during the Libyan civil war.
After years of political upheaval and violence, Algeria's economy has been given a lift by frequent oil and gas finds. It has estimated oil reserves of nearly 12 billion barrels, attracting strong interest from foreign oil firms.
However, poverty remains widespread and unemployment high, particularly among Algeria's youth. Endemic government corruption and poor standards in public services are also chronic sources of popular dissatisfaction.
Major protests broke out in January 2011 over food prices and unemployment, with two people being killed in clashes with security forces. The government responded by ordering cuts to the price of basic foodstuffs, and repealed the 1992 state of emergency law.
In 2001 the government agreed to a series of demands by the minority Berbers, including official recognition of their language, after months of unrest.