Substitute Gabriel Jesus scored twice in the closing minutes to help Brazil come from behind to beat the Czech Republic 3-1 in a friendly in Prague on Tuesday.
The Manchester City striker first slammed home a cross from David Neres who had sprinted down the left flank following a superb pass from Danilo on 83 minutes.
And then in the 90th minute, Jesus scored on a rebound of his own shot after a series of clinical passes inside the Czech box.
The Czechs took the lead in the 37th minute when midfielder David Pavelka found himself in possession behind a leaky Brazil defence and slammed the ball in past Alisson.
Roberto Firmino equalised four minutes after half-time, picking up a pass aimed at Czech sweeper Marek Suchy inside the box and firing home.
The Selecao dominated the opening minutes, but the Czechs soon levelled the game.
Czech striker Patrick Schick had the first shot on goal of the game, forcing a diving save from Alisson at his right post with a low left-footed free kick deflected by the wall.
The Czechs kept trying their luck from long range, but Vladimir Darida fired past the post and Filip Novak saw his attempt stopped by Alisson.
Brazil had a lone shot on goal in the first-half but Czech keeper Jiri Pavlenka had little trouble parrying away Casemiro's free kick.
In the second period, Philippe Coutinho saw his low shot cleared by a diving Pavlenka while substitute Neres fired into the Bremen keeper from close range.
Both teams entered the game with mixed feelings.
Preparing to host this year's Copa America which starts on June 14, Brazil were held to a 1-1 draw against Panama in a friendly in Porto on Saturday.
The Czechs were digesting a 5-0 loss to England in a Euro 2020 qualifier at Wembley on the same day, their worst defeat in memory.