After Algeria won independence in 1962, Mr. Bouteflika was appointed minister of youth and sports in the government of Ahmed Ben Bella, Algeria’s first elected president. He headed Algerian delegations to negotiations with the French in 1963 and was appointed foreign minister that year.
In 1965 he was an important actor in a bloodless coup led by Mr. Boumedienne that overthrew President Ben Bella. Mr. Bouteflika remained in charge of the Foreign Ministry until Mr. Boumediene’s death in December 1978. He was a talented and dashing foreign minister, who led a policy of anti-colonialism and noninterference and brought Algeria to prominence as a leader of the nonaligned movement and a founding member of the African Union.
For a while Mr. Bouteflika was mentioned as a potential successor to Mr. Boumedienne, until he was arrested on charges of misappropriating millions of dollars from the foreign ministry’s budget over years and was tried by the Court of Auditors. He decided — or was forced — to go into exile abroad for six years.
Returning to Algeria in 1987, he rejoined the Central Committee of the National Liberation Front, the political arm of the independence movement. But he remained a backstage figure through most of the 1990s, when military and intelligence figures dominated the government amid Algeria’s war with Islamist insurgents.
The uprising began when the government aborted elections to avert a landslide victory by the Islamist party, the Islamic Salvation Front, also known by its French abbreviation, F.I.S.
Mr. Bouteflika made his way back to the forefront as the civil war was coming to an end. Running for president in 1999, he found himself the only candidate left standing after six rivals pulled out in protest, saying conditions in which the election took place were unfair.
As president he promoted the concept of “national reconciliation,” imposing a de facto amnesty on all antagonists of the war, whether Islamists or members of the military. Both sides had been accused by human rights organizations of committing atrocities during the war, which left an estimated 200,000 Algerians dead.