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 here 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.Algeria was originally inhabited by Berbers until the Arabs conquered North Africa in the 7th century. Staying mainly in the mountainous regions, the Berbers resisted the spreading Arab influence, managing to preserve much of their language and culture. They make up some 30% of the population.
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 were slaughtered.
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).
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 Osama Bin-Laden, its methods - which include suicide bombings - and its choice of targets, such as foreign workers and the UN headquarters in Algiers, are thought to be inspired by Al-Qaeda. North African governments fear that local Islamist groups in Algeria, Morocco and Tunisia may be linking up under the umbrella of the new movement.
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 involving Berber youths demanding greater cultural and political recognition.
* Full name: The People's Democratic Republic of Algeria
* Population: 35.4 million (UN, 2010)
* Capital: Algiers
* Area: 2.4 million sq km (919,595 sq miles)
* Major languages: Arabic, French, Berber
* Major religion: Islam
* Life expectancy: 72 years (men), 75 years (women) (UN)
* Monetary unit: 1 dinar = 100 centimes
* Main exports: Oil, gas
* GNI per capita: US $4,420 (World Bank, 2009)
* Internet domain: .dz
* International dialling code: +213
President: Abdelaziz Bouteflika
Abdelaziz Bouteflika won the presidency in 1999 polls, promising to end the violence that exploded after the cancellation of the 1992 parliamentary election which an Islamic party was set to win.
Since then he secured landslide election victories in 2004 and again 2009.
After having amended the constitution to remove the two-term limit on the presidency in November 2008, Bouteflika has effectively allowed himself to remain head of state for life - changes criticised as a setback for democratic reform.
On first taking office in 1999 he promised to restore national harmony and to end years of bloodshed.
He released thousands of Muslim militants and won backing for a civil concord in 1999 which offered an amnesty to armed militants.
Many of the rebels accepted and the violence declined. Voters backed a second amnesty for the remaining militants, laid out in the president's "charter for peace and reconciliation", in a 2005 referendum.
Algeria under President Bouteflika has won praise from the West for backing the US-led "war on terror". At home, many credit him with the return of security, though attacks by Islamist militants have increased again since 2006.
Mr Bouteflika has overcome years of isolation for Algeria, welcoming a succession of foreign heads of state and government to Algiers, but his socialist-orientated economic policies have failed to wean the economy off reliance on oil and gas.
A veteran of the war for independence from France, Mr Bouteflika was Algeria's foreign minister for 16 years until 1979. He went into self-imposed exile for several years in the 1980s to escape corruption charges that were later dropped.
Power is concentrated in the presidency, with parliament considered a rubber-stamp body. Mr Bouteflika is widely credited with normalising the presidency's ties with the military, which played a key role under the state of emergency that prevailed from 1992 until February 2011.
Algeria's TV and radio stations are state-controlled, but there is a lively private press which often criticises the authorities.
There is no direct censorship, but laws set out prison terms and fines for insulting or defaming the president, MPs, judges and the army
"Although journalists no longer fear for their lives, their room for manoeuvre in terms of freedom of expression is limited," Reporters Without Borders said in 2010.
Satellite TV is popular; stations based in France target viewers in Algeria. European channels are widely-watched.
There were 4.1 million internet users by September 2009 (InternetWorldStats). Most surfers rely on dial-up connections and cybercafes.
No widespread filtering is reported, but the blocking of a political website in January 2010 was said to be the first known instance of online censorship.
Writing in Arabic, English and French, Algerian bloggers cover social, cultural and political topics. There are more than 5,000 Algerian blogs, a newspaper suggested in late 2008.
The press:
* El Khabar - private, Arabic daily; website has pages in Arabic, French and English
* Ech Chourouk - private, Arabic daily; website has English-language pages
* Le Quotidien d'Oran - private, French-language daily
* El Moudjahid - state-run, French-language daily; website has English-language pages
* Ech Chaab - state-run, Arabic daily
* El Watan - private, French language daily
* Le Soir d'Algeria - private, French-language daily
* Liberte - private, French-language
* La Tribune - private, French-language
* Algerian Press Portal - press directory
Television:
* Enterprise Nationale de Television (ENTV) - state-run
* BRTV - Berber, via satellite from France
* Beur TV - private, via satellite from France
Radio:
* Algerian Radio - operated by state-run Radio-Television Algerienne, runs national Arabic, Berber and French networks and several local stations
News agencies:
* Algerian Press Service (APS) - state-run
* Agence Algerienne d'Information (AAI) - private
A chronology of key events:
1962 - Algeria gains independence from France.
1963 - Ahmed Ben Bella elected as first president.
1965 - Col Houari Boumedienne overthrows Ben Bella, pledges to end corruption.
1976 - Boumedienne introduces a new constitution which confirms commitment to socialism and role of the National Liberation Front (FLN) as the sole political party. Islam is recognised as state religion.
1976 December - Boumedienne is elected president and is instrumental in launching a programme of rapid industrialisation.
1978 - Boumedienne dies and is replaced by Col Chadli Bendjedid, as the compromise candidate of the military establishment.
1986 - Rising inflation and unemployment, exacerbated by the collapse of oil and gas prices lead to a wave of strikes and violent demonstrations.
Ban on parties lifted
1988 - Serious rioting against economic conditions.
Ban on parties lifted
1988 - Serious rioting against economic conditions.
1989 - The National People's Assembly revokes the ban on new political parties and adopts a new electoral law allowing opposition parties to contest future elections.
1989 - Islamic Salvation Front (FIS) founded and over 20 new parties licensed.
1990 - The FIS wins 55 per cent of the vote in local elections.
1991 - Government announces parliamentary elections in June 1991 and plans changes to electoral system including restrictions on campaigning in mosques. FIS reacts by calling general strike. State of siege declared, elections postponed. FIS leaders Abassi Madani and Ali Belhadj arrested and jailed.
1991 December - In the first round of general elections the FIS wins 188 seats outright, and seems virtually certain to obtain an absolute majority in the second round.
Military takes over
1992 4 January - The National People's Assembly is dissolved by presidential decree and on 11 January President Chadli, apparently under pressure from the military leadership, resigns. A five-member Higher State Council, chaired by Mohamed Boudiaf, takes over.
Street gatherings banned, violent clashes break out on 8 and 9 February between FIS supporters and security forces. A state of emergency is declared, the FIS is ordered to disband and all 411 FIS-controlled local and regional authorities are dissolved.
Boudiaf assassinated
1992 29 June - Boudiaf assassinated by a member of his bodyguard with alleged Islamist links. Violence increases and the Armed Islamic Group (GIA) emerges as the main group behind these operations.
1994 - Liamine Zeroual, a retired army colonel, is appointed chairman of the Higher State Council.
1995 - Zeroual wins a five-year term as president of the republic with a comfortable majority.
1996 - Proposed constitutional changes approved in a referendum by over 85 per cent of voters.
1997 - Parliamentary elections won by the newly-created Democratic National Rally, followed by the moderate Islamic party, Movement of Society for Peace.
Militants ignore concord
1998 - President Zeroual announces his intention to cut short his term and hold early presidential elections.
1999 - Former foreign minister Abdelaziz Bouteflika elected as president after all opposition candidates withdraw from race, saying they had received inadequate guarantees of fair and transparent elections.
1999 - Referendum approves Bouteflika's law on civil concord, the result of long and largely secret negotiations with the armed wing of the FIS, the Islamic Salvation Army (AIS). Thousands of members of the AIS and other armed groups are pardoned.
2000 - Attacks on civilians and security forces continue, and are thought to be the work of small groups still opposed to the civil concord. Violence is estimated to have claimed over 100,000 lives in Algeria since 1992.
2001 April/May - Scores of demonstrators are killed in violent clashes between security forces and Berber protesters in the mainly Berber region of Kabylie following the death of a teenager in police custody.
2001 May - The mainly Berber party, the Rally for Culture and Democracy, withdraws from the government in protest against the authorities' handling of riots in Kabylie.
Berber concessions
2001 October - Government agrees to give the Berber language official status, as part of a package of concessions.
2001 November - Several hundred people are killed as floods hit Algiers.
2002 March - President Bouteflika says the Berber language, Tamazight, is to be recognised as a national language
2002 June - Prime Minister Ali Benflis's National Liberation Front (FLN) wins general elections marred by violence and a low turnout. They are boycotted as a sham by four parties - two of which represent Berbers.
2003 21 May - More than 2,000 people are killed and thousands are injured by a powerful earthquake in the north. The worst-hit areas are east of Algiers.
2003 June - Leader of the outlawed Islamic Salvation Front (FIS) Abassi Madani and his deputy Ali Belhadj are freed after serving 12-year sentences.
2004 April - President Bouteflika is re-elected to a second term in a landslide poll victory.
2005 January - Authorities announce the arrest of rebel Armed Islamic Group (GIA) head Nourredine Boudiafi and the killing of his deputy and declare the group to be virtually dismantled.
Government makes deal with Berber leaders, promising more investment in Kabylie region and greater recognition for Tamazight language.
2005 March - Government-commissioned report says security forces were responsible for the disappearances of more than 6,000 citizens during the 1990s civil conflict.
Amnesty backed
2005 September - Reconciliation referendum: Voters back government plans to amnesty many of those involved in post-1992 killings.
2005 November - Opposition parties keep their majority in local elections in the mainly-Berber Kabylie region, held as part of a reconciliation process.
2006 March - Six-month amnesty begins, under which fugitive militants who surrender will be pardoned, except for the most serious of crimes. The authorities free a first batch of jailed Islamic militants.
2006 May - Algeria is to pay back all of its $8bn debt to the Paris Club group of rich creditor nations, in a move seen as reflecting its economic recovery.
2006 September - Leader of the banned Islamic Salvation Front (FIS) Rabah Kebir returns from self-imposed exile and urges rebels still fighting the state to disarm.
2006 December - Roadside bomb hits a bus carrying staff of a US oil firm, killing one man. The Salafist Group for Preaching and Combat (GSPC) claims responsibility and shortly afterwards calls for attacks against French nationals.
Algiers attacks
2007 January - Salafist Group for Preaching and Combat renames itself the al-Qaeda Organisation in the Islamic Maghreb.
2007 February - Seven bombs go off almost simultaneously east of Algiers, killing six.
2007 March-April - Army steps up offensive against Islamist militants to stamp out a surge in attacks.
2007 March - Three Algerians and a Russian are killed in a roadside attack on a bus carrying workers for a Russian gas pipeline construction company.
2007 April - 33 people are killed and more than 200 are injured in two bomb blasts in Algiers, one of them near the prime minister's office. Al-Qaeda in the Islamic Maghreb claims responsibility.
2007 May - Parliamentary elections: dozens are killed in the run-up, in a wave of fighting between the military and armed groups. Pro-government parties retain their absolute majority in parliament.
2007 July - A suicide bomber targets a military barracks near Bouira, killing at least nine people.
2007 September - At least 50 people are killed in a series of bombings. Al-Qaeda in the Islamic Maghreb claims responsibility for the attacks.
Al-Qaeda's second-in-command Ayman al-Zawahiri urges north Africa's Muslims to ''cleanse'' their land of Spaniards and French.
2007 December - Double car bombing in Algiers hits a UN building and a bus full of students, killing dozens of people.
2008 June - Four Christian converts from Islam receive suspended jail sentences for worshipping illegally.
President Bouteflika brings back twice former premier Ahmed Ouyahia as new prime minister, replacing Abdelaziz Belkhadem.
2008 August - About 60 people are killed in bombings in towns east of Algiers. Al-Qaeda in the Islamic Maghreb claims responsibility.
Bouteflika's third term
2008 November - Parliament approves constitutional changes allowing President Bouteflika to run for a third term.
2009 April - President Bouteflika wins third term at the polls.
2009 July - Nigeria, Niger and Algeria sign an agreement to build a $13bn pipeline to take Nigerian gas across the Sahara to the Mediterranean.
2009 November - Disturbances mar two international association football matches between Egypt and Algeria , leading to diplomatic tensions between the two countries.
2010 April - Algeria, Mauritania, Mali and Niger set up joint command to tackle threat of terrorism.
2011 January - Major protests break out over food prices and unemployment, with two people being killed in clashes with security forces. The government orders cuts to the price of basic foodstuffs.
2011 February - President Abdelaziz Bouteflika lifts 19-year-old state of emergency - a key demand of anti-government protesters.
2011 April - President Abdelaziz Bouteflika sets up a committee tasked with suggesting constitutional changes aimed at "reinforcing democracy".