Aristide Bance was Burkina Faso's hero as he sealed a 3-2 FIFA World Cup Africa Play-Off first-leg win over Algeria with a late penalty.
The Fortuna Dusseldorf striker made up for a first-half miss from the spot when he converted a controversial 86th minute spot-kick after Essaid Belkalem was controversially adjudged to have handled inside the area.
Jonathan Pitroipa opened the scoring for Burkina Faso on the verge of half-time but their lead was quickly cancelled out by Sofiane Feghouli.
Djakaridja Kone put the hosts back in front just after the hour, but Algeria again responded quickly through Carl Medjani's towering header.
Bance scored with just four minutes to play though, as his late penalty delighted the home crowd in Ougadougou.
Burkina Faso now have the advantage heading into the second leg, to be played in Blida on November 19.
Both sides struggled to create chances of note in the opening 30 minutes of the match, however as the game drifted towards the break it burst into life.
First, Burkina Faso survived a penalty shout after Feghouli went down under a challenge from Jean-Noel Lingani, however the Valencia midfielder saw his penalty claims waved away by the referee.
A minute later the referee was pointing to the spot, but at the other end, after Pitroipa was brought down by a rash challenge from Belkalem.
Bance stepped up to take the penalty but hit a tame effort that Algeria goalkeeper Adi Mbolhi saved relatively comfortably.
Luckily for Bance, his miss was quickly forgotten as Pitroipa struck in stoppage time at the end of the half.
Lingani delivered a cross into the penalty area from deep and Pitroipa – who had got away from Madjid Bougherra – headed past Mbolhi to give the hosts the lead.
The visitors were level early in the second half as Feghouli netted his third goal of qualifying with a low shot after neat link-up with Islam Slimani inside the penalty area.
Despite Algeria's second-half dominance they found themselves behind again in the 65th minute as Kone produced a moment of magic.
The midfielder controlled a loose ball on his chest, took the ball past Mehdi Mostefa-Sbaa and lashed the ball into the bottom corner for his second international goal.
Burkina Faso's lead only lasted three minutes though as Medjani rose to meet a left-wing corner to head past goalkeeper Daouda Diakite.
The hosts would not be denied though, claiming the winner with four minutes left after Belkalem was penalised for handling the ball.
It was not referee Janny Sikazwe who gave the penalty though, instead his assistant, and although Mbolhi got a hand to Bance's effort, it was second time lucky for the Burkina Faso man.
|Coach: P. Put|
for Bakary Koné 8'
for J. Lingani 68'
for M. Koffi 78'
|Boateng: Bayern solely to blame for Champions League exit|
|Zabaleta confirms calf injury|
|´It was a siege´ - Torres proud of Atletico after holding off Bayern|
|Liverpool v Villarreal: Klopp demands improvement in Anfield return|
|Bayern Munich 2 Atletico Madrid 1 (2-2 agg): Griezmann clinches final berth with away goal|
|AFC Champions League Review: Victory, Al Hilal and Al Ain qualify with wins|
|Courtois ´100 per cent´ committed to Chelsea, denies PSG contact|
|Pellegrini: Madrid are more than Ronaldo|
|Trabzonspor handed four-game stadium ban|
|Morata muscle tear ruled out|
|Sevilla v Shakhtar Donetsk: Vitolo fired up to seal historic Europa League final spot|
|UEFA has opened Pandora´s box with Kosovo decision - Serbian FA president|
|Infantino claims positive response to FIFA funds plan|
|Aubameyang reiterates Real Madrid desire|
|Huth and Fellaini charged by FA|
|Cahill hopes for FA understanding after fiery Tottenham clash|
|Kehl slams Dortmund fans over Hummels boos|
|Mourinho congratulates Ranieri for winning ´my title´ with Leicester|
|Confusion reigns as City confirm Toure travels to Madrid|
|Mata: United can finish fourth and win FA Cup|
|Missing Champions League final would be a failure - Zidane|
|City without Toure for Real Madrid semi-final|
|Infantino hails Leicester title as ´the magic of football´|
|Redknapp talks up ´South Coast Mariners´ role|
|Real Madrid can cope without Benzema - Navas|
|Ronaldo returns for Madrid, but Benzema will miss Bernabeu clash|
|Ranieri wants happy players for title defence|
|Kosovo win vote to become UEFA member nation|
|Drinkwater: Leicester title is mad, bonkers|
|Morgan predicts tear-stained Premier League trophy|
|Transfer market travails and the empire striking back: What next for Leicester City?|
|Toure trains ahead of Real Madrid clash|
|Guardiola´s rotation policy a potential own goal - Magath|
|Ballack backs Atletico to prove too strong for Bayern|
|Messi agreed with Olympics snub - Martino|
|Benzema misses Real Madrid open training|
|Ranieri: We want to improve|
|Ronaldo: Like it or not, I´ll go down in history|
|Strootman delighted with return to Roma starting XI|
|Laporte dismisses Manchester City rumours|
|Ranieri has silenced critics, says Kisnorbo|
|Van Gaal: I am one of the best managers in the world|
|Santa Cruz: Guardiola will bring better football to City|
|Guardiola always a bit anxious - Kahn|
|Kisnorbo: No one will forget Leicester´s fairytale run to Premier League glory|
|Rodgers backs Klopp´s handling of Sturridge|
|Wright: No one would have touched Kante and Co.|
|Smalling: Captaining United an honour|
|No surprises in Mexico´s 40-man Copa squad|
|Juanfran: We are a team of details|
|Stepanenko: My friendship with Yarmolenko is over|
|Leicester fan Martinez: I am glad it did not happen in Germany|
|Schwarzer has shown age is just a number - Kisnorbo|
|Mangala: City want to make history in Champions League|
|Lineker struggling to believe Leicester success|
|Carrick: Top four not gone yet|
|De Gea named United´s player of the year|
|Dundee 2 Dundee United 1: Visitors relegated|
|King delighted to crown Leicester rise with title|
|Ranieri: I knew I would win a title eventually!|
|Soccer world reacts to Leicester´s remarkable Premier League title|
|Serie A Review: Strootman starts as Roma fight back again|
|Leicester success a ´good omen´ for Selby|
|Kane: Chelsea celebrated like they won title|
|Thumping Man City, edging Tottenham and five matches that won Leicester the Premier League|
|Vardy marvels at Leicester´s finest hour|
|Ranieri called me to say thanks, reveals Hiddink|
|Leicester did the impossible - Morgan|
|Terry: Leicester title triumph gives hope to smaller sides|
|Pochettino proud as Spurs fall short|
|Savage: Leicester title a key moment in Premier League history|
|Football world reacts to Leicester´s remarkable Premier League title|
|Leicester deserve Premier League title - Hazard|
|Leicester players celebrate Premier League title triumph in style|
|From Tinkerman to champion: Ranieri writes the greatest story ever told|
|Champions Leicester worthy of a film - Heskey|
|The greatest upset: Champions Leicester break new ground for sporting underdogs|
|Chelsea 2 Tottenham 2: Leicester champions as Spurs collapse at Stamford Bridge|
|Leicester crowned Premier League champions|
|Werder Bremen 6 Stuttgart 2: Crushing win lights up survival fight|
|Malaga 3 Levante 1: Late collapse all but relegates Rubi´s men|
|Neuer cites home crowd as advantage for Atleti clash|
|Icardi surprised by Argentina selection|
|Ribery fit to face Atletico in Champions League semi-final|
|FIFA extends Sakho ban worldwide|
|Torres and Atletico ready for war at Bayern|
|Football League Review: Burnley earn promotion back to the Premier League|
|Simeone pledges to chase victory at Allianz Arena|
|´Nothing in life is certain´ - Handanovic on Inter future|
|CAS order FIFA to reconsider Gibraltar membership|
|Trapattoni: I love Simeone and Atletico´s style|
|Balotelli is a changed man, says Galliani|
|Real Madrid job is about politics - Pellegrini|
|De Laurentiis wants Sarri at Napoli long term|
|Yarmolenko will not go to Everton or Stoke - Dynamo president|
|Suarez a difference maker - Stoichkov|
|Drinkwater to face no further action from FA|
|Albrighton: Leicester players will watch Chelsea v Tottenham together|
|More to Manchester City than Aguero - Casemiro|
|Boban: Maldini can save Milan|
|Real Madrid v Manchester City: Pellegrini eyes away goal as Zidane hopes for Ronaldo|
|Pellegrini doubts longevity of Leicester´s credentials|
|Portugal unconcerned by Ronaldo fitness|
|Ribery tells Guardiola to play him against Atletico|
|Vardy wins FWA Player of the Year award|
|Hiddink: Title pressure could get to Tottenham|
|Messi never cheats, insists Xavi|
|Dortmund tell Bayern Hummels fee is non-negotiable|
|Welbeck a different animal again - Wenger|
|Xavi: Real Madrid played like a small team in Clasico|
|Bayern can win Champions League - Santa Cruz|
|Reina backs Atletico to win the double|
|Perth Glory lure Herd to A-League|
|England can´t afford Australia loss - Kewell|
|Stankovic: Simeone will coach Inter, but not now|
|I had to rotate squad - Pellegrini|
|Candreva backs Inzaghi for Lazio job|
|I can make fans forget my bad season – Hazard|
|MLS Review: Cole sees red in Galaxy stalemate, Valeri stunner lifts Timbers|
|Pochettino: Deal announcement can convince Tottenham stars to stay|
|Hiddink: Chelsea can´t replace Terry|
|Pulisic, Morris picked by Klinsmann in initial Copa squad|
|Wenger anticipated worse from protests|
|Kante set to have stand named after him|