Many now see the general, a veteran of Algeria’s war for independence, as the guardian of the military-dominated system that has been in power ever since.
He has acted as the key driving force behind Thursday’s presidential election.
When Bouteflika appointed him in 2004 to head the armed forces — the backbone of Algeria’s opaque regime — he became one of the North African country’s most powerful men.
For years, Gaid Salah unwaveringly supported Bouteflika, even backing the octogenarian’s unpopular bid early this year for a fifth term in office.
But the president’s February announcement that he would stand for election yet again sparked weeks of unprecedented mass demonstrations.
In early April, Gaid Salah called on his boss to resign; Bouteflika quit the same day.
That left the army chief effectively in control of the country.
‘A brutal soldier’
Born in 1940 in Batna region, some 300 kilometres (190 miles) southwest of Algiers, Gaid Salah has spent more than six decades in the armed forces.
At the age of 17, he joined Algeria’s National Liberation Army in its gruelling eight-year war against French colonial forces.
When the North African country proclaimed its independence in 1962 after 132 years as a French colony, he joined the army, attended a Soviet military academy and rose through the ranks.
Gaining a reputation for a hot temper, he commanded several regions before becoming chief of Algeria’s land forces at the height of a decade-long civil war pitting the regime against Islamist insurgents.
In 2004, as he hit retirement age, he was picked by Bouteflika to replace chief of staff Mohamed Lamari, who opposed the president’s quest for a second mandate.
By 2013, he had helped Bouteflika dismantle the feared DRS intelligence agency, sending its powerful head Mohamed “Toufik” Mediene into retirement two years later.
Today, the DRS is defanged, Bouteflika is off the scene and many of his allies are being prosecuted for graft as part of investigations encouraged by Gaid Salah.
That has left the military chief, who is also deputy defence minister, undisputedly in charge of Algeria.
He has issued veiled threats to demonstrators and exercises considerable influence over the justice department and the civilian administration of interim president Abdelkader Bensalah. Flavien Bourrat, a researcher at the Institut de Recherche Strategique de l’Ecole Militaire (Inserm) in Paris, said Gaid Salah enjoys relatively unified support within the army.