Day seven at the 2012 Nations Cup delivered up a Group C double bill in Libreville.
The first leg saw Tunisia, champions in 2004, down Niger 2-1 to put one foot in the last eight.
Next on the menu at the L’Amitie Stadium came Gabon, who faced a Morocco side fighting for their Cup lives after an opening loss to Tunisia.
Not one of the 40,000 crowd spurring on their national team will ever forget this tie which erupted in the final quarter of an hour with four goals, two of them in stoppage time.
Morocco, with an injury time penalty, believed they had done enough to keep the wheels on their Cup campaign, but that wasn’t counting on Bruno Mbanangoyes’s curling freekick in the final second of the eighth minute of stoppage time of a remarkable encounter.
Gabon had been on the brink of winning in normal time after goals from Pierre-Emerick Aubameyang and Daniel Cousin in the 73rd and 77th minutes had put them in command after Houssine Kharja’s opener.
But, as the stadium announcer urged the partisan supporters to “remain calm, remain calm” Kharja appeared to have spoiled Gabon’s night when stepping up to coolly convert the 91st minute spotkick awarded for Charly Moussono’s handball.
Rarely can one man have ever so effectively silenced a crowd of this size.
But then along came Mbanangoye to seal all three points and put Gabon into the knockout stages, and give the fans back their voice.
The result also put Tunisia into the quarter-finals, these two teams joining already qualified Equatorial Guinea and Ivory Coast.
Reflecting on the stunning win Gabon coach Gernot Rohr said: “The final 15 minutes were truly dramatic. I must say bravo to my players.
“Our fortunes turned when Pierre-Emerick Aubameyang scored. Now we’d like to finish top of the group, then we can stay in Libreville.”
The German praised not only his team, but their ’12th man’ – the crowd.
“The atmosphere reminded me of a night when I was coach of Bordeaux, with (Zinedine) Zidane, we beat AC Milan 3-0 in the Champions League in 1996, the crowd helped us that day like they did tonight.”
Morocco coach Eric Gerets was bemused how the game had slipped from his team’s grasp, and marvelled at the dramatic finish.
“My heart was going 200 beats a second!
“I have to congratulate Gabon’s coach and his team, they’ll have a big party in Gabon tonight, but I would have preferred a big party in Morocco.”
Morocco captain Kharja added: “Well done Gabon but we are so disappointed and frustrated, we thought we were going to win this game.
“There was so much expectation from the Moroccan people, now we’re knocked out. We fell from very high to very low. We wil ltry to learn from this experience and come back winners in thhe future.”
Earlier, Tunisia had raced into a three minute lead against Niger courtesy of Youssef Msakni only for William Tonji Ngounou to create history with debutant Niger’s first ever Cup goal five minutes later.
But Tunisia ruined Niger’s night when substitute Issam Jemaa bagged the winner for the 2004 titleholders in the final minute.
Niger’s Maazou Moussa Ouwo said: “It hurts, because we were in control of the game and it’s too bad we should lose in the last minute. We’re not going to sleep very well tonight, we’re really going to regret this game.”
Tunisia coach Sami Trabelsi reflected: “We knew Niger would be well organised and rigorous on the counter attack. The spirit of my team was there for all to see. Thank God we were able to win, thank God.”