Fulltime: Brazil 1-1 Germany - Brazil win 5-4 on penalties
- Hosts win gold medal after dramatic penalty shooutout.
- Neymar scores with a brilliant free-kick.
- Max Mayer levels the score on the hour mark.
- Neymar strikes winning penalty.
Brazil win the gold medal!
Neymar seals the gold medal for the hosts! The Maracana erupts as the brilliant Brazilian sends the ball into top corner. Incredible scenes of joy and heartbreak in Rio.
He breaks down in tears. The captain has done it for the hosts. What a game. What a brilliant, brilliant game of football. And what a way to win the gold medal!
Petersen misses! Wavetton saves his right-footed effort - and it's all set for Neymar now. Here we go...
Now it's Luan. He scores easily. 4-4.
Suele, the centre-back, bangs it into the bottom corner for Germany. Brilliant penalty, that.
This is an exhibition of penalty taking at the moment.
Rafinha levels it up again, though. Rafinha shows impressive calmness to find the bottom corner. 3-3.
Faultless, again, from Brandt who sends the keeper the wrong way. Germany hit the front again.
Make that 2-2. Paris Saint-Germain's Marquinhos shows nerves of steel to put it away.
Serge Gnabry finds the net! But that should've been saved - it crept under Waverton. 2-1 Germany.
For Brazil it's Renato Augusto - and he scores, too! The midfielder has capped a good game with a well-taken penalty. 1-1 in the shootout.
It's Germany who win the toss and opt to take the first kick. The two keepers are giving a talking to by the ref. And now for the real business...
Ginter against Waverton. He scores and Germany take the lead for the first time tonight. That was cool and calm from the World Cup-winning defender.
Who will be the villain? Who will be the hero? Here we go...
Full-time ET: Brazil 1-1 Germany
All over in extra-time - and we go to penalties! What a finale to this incredible game in Rio.
Tick-tock, tick-tock, tick-tock... we're heading towards the dreaded penalty shootout. It's all Brazil in the closing moments, but they still can't find the net.
Sven Bender can barely move in midfield. He has severe cramp and is hobbling about the pitch.
The German coaching staff suggest subbing him, but Bender flatly refuses. I assume the midfielder will volunteer to take a penalty.
For the first time in what feels like forever, German have a sustained spell of possession. Gnabry's goal-bound effort is blocked, however, and Brazil survive.
German possession is being greeted by whistles now. The home crowd are urging their side on. An incredible atmosphere in the Maracana.
Neymar is suffering with cramp, but he is trying to drag his aching body over the line, to his credit.
It's one-way traffic now. Brazil are pressing for the winner, while Germany appear content to play for penalties.
Brazil's latest attack falters when Neymar blazes a right-footed effort over the bar. Ten minutes left - that's all.
Anderson's pace at this stage is a real outlet for Brazil. The Lazio man is Usain Bolt-like over the ground, although his end product can be erratic.
We're back under way already at the Maracana. There are 15 minutes left for someone to make themselves a hero...
And Felipe Anderson was almost the man, latching on to a through ball from Neymar, but his right-footed effort is pushed wide by the keeper. Anderson - who looks a threat - should've hit that with his left foot, though.
Extra-time HT: Brazil 1-1 Germany
The first period of extra time has come and gone - and we're still awaiting a winning goal. Penalties are on the horizon now.
Whatever the result in this game, it must be said that this has been an outstanding match and will have dramatically enhanced the reputation of the Olympic football tournament, which has had its critics.
More than 200 million in Brazil are absolutely gripped by this occasion.
The crowd are trying to urge Brazil on, desperate for them to score a gold medal-clinching goal. But as it stands, penalties appear to be a distinct possibility.
Oh, it's so, so close for Germany!
Brandt gets his toe on the end of a cross from the right flank, but the ball goes agonisingly wide of the upright. Time seemed to stand still for a second then, as the Maracana sat in silence.
This is incredible stuff.
Gabriel Jesus is coming off, in fact. He is being replaced by Rafinha of Barcelona. His elder brother is Thiago Alcantara, who plays international football for Spain.
Back to the action, anyway, and Luan wastes the ball when Brazil look to launch a break.