
Two first-half goals from Vinicius Junior left Scotland 2-0 down at half-time in a game they needed a result from.
Matheus Cunha then added a third for Brazil on the hour mark, and whilst the Scots were more of an attacking threat in the second half, they lost and failed to score again.
The 3-0 defeat today and the 1-0 defeat to Morocco on Thursday means Scotland finish their Group campaign on three points with a minus three goal difference.
With Bosnia & Herzegovina having achieved more points than Steve Clarke's men from Group B, elimination is staring the Scots in the face.
Clarke praises Brazil and commits to making Scots better
It was a positive beginning for the Scots with them dominating possession, but a sloppy touch from Scott McKenna allowed Rayan to pounce before Vinicius tapped into an empty net.
Despite having a goal ruled out by VAR, Brazil added a second in added time at the end of the first half, as the Real Madrid winger took advantage of Angus Gunn's failure to punch away a Bruno Guimaraes cross.
Cunha added a third, which was set up for him by Lucas Paqueta, after Scotland were caught high up the pitch in their search for a goal to get themselves back into the game.
Steve Clarke acknowledged this as he said: "They're [Brazil] a good side, got great players but the difference was probably in both boxes. We put ourselves on the back foot, got their tails up, and after that, long night."
“Their quality in the final third was much better than ours. We created some chances in the second half, never really a clear chance, there's were clear chances."
Robertson rues defensive errors
Andy Robertson led Scotland into their second tournament in as many years, but the new Tottenham recruit was left frustrated with the manner of his nation's defeat.
The captain said: "I thought we started well, first five, ten minutes we were moving the ball about and the goal we conceded got us off to a bad start. We tried but we let ourselves down tonight."
Robertson's agony continued over into his discussion of whether Scotland could still qualify for the knockout phase.
Despite finishing third, the Tartan Army will be in the round of 32 if they are one of the top eight teams to have finished eighth in the Group Stages.
"It's so hard to even think about that [the knockouts], we didn't want to put ourselves in that position. We're now gonna have to watch every single game and hope for this team to get beat or that team to get beat," said a disgruntled 32-year-old.
What is next?
For Scotland, they will be hoping that other teams fail to surpass their three points and minus three goal difference, allowing them to qualify for the knockout stage.
For Brazil, due to them finishing top of Group C, they know one of Netherlands, Japan and Sweden awaits in the round of 32.

