A chaotic scene broke out in one of the first Olympic men’s soccer matches at Stade Geoffroy-Guichard in Saint-Etienne, France, on Wednesday.

The opening Group B match between Morocco and Argentina came down to the wire. Argentina thought it had scored the game-tying goal in added time, which would have earned them a draw and points toward possibly entering the knockout stage.

CLICK HERE FOR MORE SPORTS COVERAGE ON foxnews.1eye.us

Fan invades the field

Invaders run on the pitch during the men's Group B soccer match between Argentina and Morocco at Geoffroy-Guichard Stadium at the 2024 Summer Olympics, Wednesday, July 24, 2024, in Saint-Etienne, France. (AP Photo/Silvia Izquierdo)

However, angry Morocco fans crashed the field to protest the late goal. Objects were thrown onto the field, and security guards had to tackle the pitch invaders. Bottles and cups were strewn across the field by the end of the match.

Fans who packed the stadium thought Argentina’s Cristian Medina goal in the 16th minute of added time was the equalizer. It was thought the full-time whistle had blown and the match was over. Fans were told the match was suspended, and they had to leave the stadium.

CANADA WOMEN'S SOCCER DRONE INCIDENT SPARKS CONTROVERSY AHEAD OF PARIS OLYMPICS

Security guard catches a fan

A steward catches a pitch invader during the men's Group B soccer match between Argentina and Morocco at Geoffroy-Guichard Stadium at the 2024 Summer Olympics, Wednesday, July 24, 2024, in Saint-Etienne, France.  (AP Photo/Silvia Izquierdo)

Fan gets dragged down

A steward pulls down a fan during the men's Group B soccer match between Argentina and Morocco at Geoffroy-Guichard Stadium at the 2024 Summer Olympics, Wednesday, July 24, 2024, in Saint-Etienne, France. (AP Photo/Silvia Izquierdo)

About an hour later, organizers said the match wasn’t officially done just yet and VAR was reviewing whether the goal would stand. Players returned to the field to warm up for the final few minutes, and an official informed Argentina the goal call was reversed as Argentina was ruled offside.

The match restarted in a mostly empty stadium and lasted another three minutes before the final whistle was heard.

Morocco won the match 2-1.

Bottles strewn across the pitch

Stewards catch pitch invaders during the men's Group B soccer match between Argentina and Morocco at Geoffroy-Guichard Stadium at the 2024 Summer Olympics, Wednesday, July 24, 2024, in Saint-Etienne, France.  (AP Photo/Silvia Izquierdo)

CLICK HERE TO GET THE FOX NEWS APP

Soufiane Rahimi scored twice for Morocco. Giuliano Simeone scored in the 68th minute for Argentina.

The Associated Press contributed to this report.

Follow Fox News Digital’s sports coverage on X and subscribe to the Fox News Sports Huddle newsletter.