Costa Rica and Morocco have kicked off a day of upsets at the World Cup with shock wins over Japan and 2018 semi-finalists Belgium respectively.

Just days after losing 7-0 to Spain, Costa Rica completed the ultimate smash-and-grab victory with a goal on 81 minutes to defeat Japan.

WATCH IN THE VIDEO ABOVE: Morocco score epic free kick after goalkeeper’s brutal mistake.

Watch the latest sport on Channel 7 or stream for free on 7plus >>

Morocco, meanwhile, took the lead against Belgium in the 73rd minute and doubled the margin in stoppage time to secure their first win at a World Cup since 1998 and only the third in their history.

The 2-0 defeat leaves Belgium on the brink ahead of their final group game against Croatia in the final Group F match.

Moroccan substitute Abdelhamid Sabiri broke the deadlock on Sunday when he outsmarted Belgium goalkeeper Thibaut Courtois by whipping in a free kick from a tight angle at the near post.

Belgium and Courtois could not say they hadn’t been warned: just before halftime, Morocco had a very similar free kick, taken by Hakim Ziyech, ruled out for a narrow offside after a VAR check.

Zakaria Aboukhlal then guided a shot into the roof of the net off a pass from Ziyech in stoppage time.

MATCH CENTRE: All the stats and minute-by-minute commentary from Morocco’s shock win over Belgium

Abdelhamid Sabiri celebrates scoring to take the lead against Belgium. Credit: Adam Pretty – FIFA/Getty Images

Earlier, Costa Rica showed real resilience to bounce back from the Spain thrashing to defend, defend, defend and pull off a heist against Japan.

Keysher Fuller took advantage of a defensive error when Japan failed to clear their lines and then made a second mistake by playing him onside.

He took deliberate aim from the edge of the area and his precise shot just made it into the net off the fingertips of Japan goalkeeper Shuichi Gonda, who should have done better.

The match at Ahmad Bin Ali stadium was tactical and largely lacklustre, particularly in a first half that did not yield a single shot on goal.

The second half was slightly better with Japan pressing throughout until Costa Rica broke through.

Costa Rica coach Luis Fernando Suarez is relieved his team can “still dream” of reaching the knockout stage.

MATCH CENTRE: All the stats and minute-by-minute commentary from Costa Rica’s upset against Japan

Keysher Fuller was the match-winner for Costa Rica. Credit: Hector Vivas – FIFA/Getty Images

“I believe the main thing was our ability to do such amazing things,” he said.

“I’m not going to talk about tactical or technical aspects, today I need to value and appreciate what they have done to get this result.

“We had to face many challenges but we firmly believed and wanted to be 100 per cent committed for our country to play well against a strong opponent like Japan.

“We are alive (in the group), that is the main thing and no one can forget about us yet. We can still dream.”

Fuller, 28, was the hero.

“The main thing was to keep ourselves alive and to win, and we managed to do so,” he said.

“We were in pain after the Spain defeat, but now we took a weight off our shoulders. We are a group that wants to achieve great things.”

Socceroos goal sparks wild scenes in Melbourne

Socceroos goal sparks wild scenes in Melbourne