Cameroon came from behind to beat Egypt 2-1 and seal a fifth Africa Cup of Nations in a thrilling, edgy final.
Substitute Vincent Aboubakar swept in the winner two minutes from time, flicking the ball over defender Ali Gabr and thumping it home.
Nicolas Nkoulou had earlier equalised for Cameroon, rising highest to power in a header on the hour mark.
The equaliser cancelled out Mohamed Elneny’s opener on 22 minutes with a beautifully taken near-post strike.
The wild celebrations for Aboubaker’s winner announced Cameroon’s return to the continental summit, after a wait of 15 years.
The Besiktas striker ran all the way to the VIP enclosure of the Stade de l’Amitie in Libreville to celebrate, chased by his teammates and the coaching staff.
Underdogs Cameroon had already upset the odds to reach the final and stunned the much-fancied Egyptians with the late dramatic strike, after fellow substitute Nkoulou had drawn them level.
Despite being beset by pre-tournament problems, including the withdrawal of key players such as Joel Matip and Eric Chuopo-Moting, coach Hugo Broos managed to assemble a squad that got their reward for being strong, adaptable and resilient in equal measure throughout.
The Pharaohs – bidding for an eighth title after seven years in the international wilderness – started comfortably and Elneny’s opening strike capped a wonderful fluent move down the right.
The Gunners midfielder started the move and finished it, after receiving the ball from Mohamed Salah in the box and sweeping it past Fabrice Ondoa into the roof of the net at the near post.
But Egypt invited the Indomitable Lions to come at them in the second half and they paid a heavy price.
The excellent Cameroon forward Benjamin Moukandjo whipped in an excellent, menacing cross and substitute Nkoulou muscled his way through the Egyptian defence to beat Ahmed Hegazy to the ball and bury it past 44 – year-old Essam El Hadary in the Egyptian goal.
The contest developed into a fascinating cagey final, with Cameroon, inspired by the excellent Christian Bassogog and Jacques Zoua up front, pinning Egypt back and limiting them to long balls to Salah and substitute Ramadan Sobhi.
Fatigue soon set in the Egyptian ranks and Cameroon got their reward for increasing the pressure on the experienced Egyptian defence Aboubakar picked up the ball at the edge of the box, flicked it over the stranded Gabr, before gathering, taking a step and smashing home off his right foot for a fitting winner.