Watch: Neymar overcome by emotion as he secures Olympic gold for Brazil
Brazil 1 Germany 1 - AET Brazil win 5-4 on pens
Neymar inspired Brazil to redemption, revenge and glory, helping atone for the most humiliating night in the country's footballing history by defeating nemesis Germany on penalties to finally win Olympic gold.
The wounds remain raw two years on from a 7-1 World Cup semi-final shellacking that not only saw the Selecao lose the chance of winning on home turf but their dignity.
Saturday's gold medal match offered a shot at redemption and proved the defining moment of the hosts' Games, with Neymar, ruled out of 2014's meeting through injury, scoring the decisive penalty as Germany were overcome 5-4 in the shootout that followed an intense 1-1 draw at the magnificent Maracana.
Olympic football may be a sideshow for most but it has been the main event for the millions of Brazilians that, throughout the competition, have crammed around TVs and filled stadiums at an Olympics when tickets have proved hard to shift.
Neymar's reaction to scoring the winning penalty is why I will always love football. And Neymar. Especially Neymar. pic.twitter.com/8iSqE3b18N— Sean Kent (@seankent) August 21, 2016
This encounter offered a chance to both make amends and history, with this the hosts' grand finale despite the closing ceremony taking place at the same venue the following night.
Poster boy Neymar got Brazil off to an exceptional start, with the star turn lighting up the final with an delightful 25-yard free-kick.
The forward's stunning effort saw the home side boast the lead after a first half in which Germany hit the crossbar three times, with captain Max Meyer eventually levelling within 15 minutes of the restart - the first goal the hosts have conceded at these Games.
The scores remained level as extra-time came and went, but Die Mannschaft would not secure silverware at the ground that witnessed both their 2014 World Cup triumph and women's gold the previous day.
Instead, Nils Petersen's saved penalty allowed Neymar to end the five-time World Cup winners' long quest for men's football gold, bringing relief to a country whose complexities and problems have been reflected at times by their Olympics.
A slow start to the tournament has built up to quite the crescendo for the Selecao, with a remarkable din greeting the players before the national anthem was belted out with plenty of aggression and passion.
Brazil, though, know all too well that such emotion is not always enough and Germany fired a warning shot in the 10th minute, with Julian Brandt curling a beautiful strike that rattled both the crossbar and partisan crowd.
Rogerio Micale's men had looked bright up until that point and continued to threaten, with Luan having an attempt blocked before an inswinging Neymar corner caused havoc.
Miscommunication in the box saw another chance from a corner wasted, but Brazil were soon celebrating an opening goal, and in some style.
Neymar dusted himself down after a foul and took aim from 25 yards, with his exceptional, right-footed free-kick beating Timo Horn and clipping the underside of the bar on its way in.
The noise ratcheted up to a level not heard at these Olympics but Germany attacked undaunted, with a teasing Meyer free-kick directed onto the top of the crossbar by a Brazilian defender.
The highly-rated German captain forced Weverton into a strong save from the resulting corner, before Sven Bender's powerful header hit the woodwork.
They were nervy moments but Neymar's attempted rainbow flick showed the hosts' belief - a mentality put under pressure 15 minutes into the second half.
Jeremy Toljan's cross from the right found Meyer in the box, with the Germany captain sweeping home superbly and celebrating the equaliser right in front of the locals.
Manchester City new boy Gabriel Jesus came close to almost immediately putting Brazil back into the lead, before Luan took a tumble looking for a penalty and Neymar superbly cut inside to strike just wide.
Anxiety levels were increasing as Luan and Gabriel Jesus had attempts to settle the match, with Meyer fizzing across the face of goal at the other end as both sides failed to snatch a winner.
Extra-time awaited and dawdling Luan was blocked before Brandt turned just over, with Horn rushing off his line to deny Felipe Anderson shortly after the break.
Substitute Rafinha saw an effort blocked but there would be nothing to split the sides as the match went to penalties.
Both sides scored their first four but substitute Petersen's spot-kick was saved by Weverton, giving Neymar the chance to make history.
He did not waste that moment, sending the Maracana and the whole of Brazil wild.
Irish Independent Sport Star Awards
Pick our magic sports moment of the year and win a trip for two to London. To view the shortlist and cast your vote click here.