
Neymar thought he had won a penalty with ten minutes left but the referee overturned the decision after reviewing the incident on VAR.
The win puts Switzerland into second place in Group E with four points, the same as Brazil.
Brazil struggled to a 2-0 victory over Costa Rica with both goals coming in injury time, and one of the most notable aspects of the match was the frosty relationship Neymar had with referee, Bjorn Kuipers.
As the final in the second Group E whistle went, emotions appeared to overwhelm Neymar, who collapsed on his knees, crying as he prayed.
The PSG star collapsed to the ground and burst into tears while the rest of his team-mates celebrated.
Serbia beat Costa Rica 1-0 in their opening game, and face the Swiss on Friday evening.
"When I gave the ball back (to Costa Rica) he insulted me", Silva said in comments reported by globo.com.
"We knew Brazil's strengths and we wanted to minimise them and we managed to do so for almost 91 minutes", he added.
Saudi Arabia take positives for Asian Cup after Russian Federation exit
Uruguay beat a 48-year curse of failing to win a World Cup finals opener on Friday, but needed an 89th-minute header to do so. The FIFA World Cup 2018 Uruguay v/s Saudia Arabia match will be played at Rostov Arena Rostov-On-Don.
He insulted me when I brought the ball according to the principles of fair play. If Nigeria wins, it will advance to the round of 16. With the match in danger of ending in a draw, the Brazilians seemed nervous but composed themselves through the seven minutes of injury time. Though the Costa Rica team defended well but were of no challenge to Brazil whatsoever.
Man of the match Coutinho said Brazil's win came as a result of the team showing great patience. The wonderful video is going viral on the internet for all the right reasons.
How much an emotional victory proves to be a launch pad rather than a false dawn remains to be seen as the pre-tournament favourites made heavy work of a Costa Rica side that have now lost their past four games.
The possibility of a scoreless draw felt even more likely when Neymar stole the ball and whipped a 21-yard shot just off the upper 90.
Liverpool's Roberto Firmino presents an attractive alternative in the number nine position for the final round-robin match against Serbia.
In the end though, Neymar finally delivered and the goal should take some weight off his shoulders.
"In these kind of games you will not have many chances - you might have two or three chances, which we clearly did create and it's a pity we didn't score", he added.