With Serbia playing as Yugoslavia, the sides had met 18 times, including four encounters in FIFA World Cup group stages: in 1930, 1950, 1954 and 1974, with one victory for each and two draws.
After a goalless first half, Richarlison opened the scoring for Brazil in the 62nd minute, when he followed up to finish after Serbian goalkeeper Vanja Milinković-Savić saved Vinícius Júnior's low shot from the left, with Neymar initially creating the chance.
[2] Richarlison then made it 2–0 eleven minutes later when he controlled the ball from Vinícius Júnior before finishing to the left of the net with an over-the-shoulder acrobatic right-footed kick.
[5] The only goal of the game was scored by Brazilian midfielder Casemiro in the 83rd minute, when his deflected right-footed shot from inside the penalty area struck the top corner of the net.
Despite the Brazilians having the majority of the game's chances, Cameroon would take the lead in second-half stoppage time, after Vincent Aboubakar ran into the penalty area to head the cross from Jerome Ngom Mbekeli on the right into the net's bottom corner from six yards out.
With ten minutes left and leading by three goals, Brazilian goalkeeper Alisson was substituted for third-choice keeper Weverton, making Brazil the first team to ever use 26 different players play time in one World Cup.
[16] Brazil created the majority of the game's chances, forcing Croatian keeper Dominik Livaković into eleven saves, the most in a single match at the tournament.
A defensive lapse then cost Brazil their lead, as Bruno Petković equalised for Croatia three minutes from the end; after picking out Mislav Oršić's cross on the left flank, he fired a shot into the corner of the net that took a deflection off the leg of Brazilian defender Marquinhos.