DOHA, Qatar -- Defending champion France edged past England 2-1 on Saturday as Harry Kane missed a late penalty in the World Cup quarterfinals, after Morocco became the first African team ever to reach the last four.
France will face the surprising North Africans in a semifinal on Wednesday, earning their place when Olivier Giroud's header proved the difference at Al Bayt Stadium.
In a tense match, Aurelien Tchouameni's strike opened the scoring with 17 minutes gone, but Kane brought England level from the penalty spot early in the second half.
England was the better team for large parts of the match, but Giroud scored when it mattered most, rising above Harry Maguire to nod the ball into the net on 78 minutes for his 53rd goal for France.
As England desperately searched for an equalizer, it was thrown a late lifeline when Theo Hernandez needlessly shoved over Mason Mount and the referee gave a spot kick following a VAR review.
But Kane blasted his kick high over the crossbar, spurning the chance to send the game into extra time.
He was the first England player to sink to his knees at the final whistle, his head in his hands.
"We gave them a little ammunition with two penalties, but it is with hearts and guts that we held onto this result," France coach Didier Deschamps said.
"It's fabulous because it was a big match against a very good English team.
"We responded once again, it's wonderful to reach the last four again, you have to savor it, a World Cup semifinal is quite something."
England coach Gareth Southgate said he had told his players, "I don't think they could have given any more."
"They've played really well against a top team. It's fine margins and things at both ends that have decided the game," Southgate added.
Only the most fervent Morocco fan would have bet on their side reaching the World Cup semifinals before the tournament kicked off.
On Saturday, Morocco beat Cristiano Ronaldo and Portugal 1-0 thanks to Youssef En-Nesyri's first-half header to go further than any African team ever has at a World Cup.
Morocco, No. 22 in the world before the tournament started, has surpassed the three other African sides to reach the quarterfinals -- Cameroon in 1990, Senegal in 2002 and Ghana in 2010.
Ronaldo, who came on as a second-half substitute, was unable to rescue his side and at the final whistle walked off down the tunnel wiping away tears without acknowledging either his teammates or the victorious Moroccans.
Ronaldo, 37, who with Lionel Messi has dominated world soccer for the past two decades, has likely played his last World Cup match after making a world record-equaling 196th international appearance at the Al Thumama Stadium in Doha.
The Moroccans have wildly surpassed expectations in Qatar and coach Walid Regragui lauded the battling spirit of his injury-hit side.
"We're drawing on all we have, we still have guys injured. I told the guys before the match we had to write history for Africa. I'm very, very happy," Regragui said.
As their national team made history, crowds gathered in Casablanca and chanted "Qualified! Qualified!"
There were also celebrations across the Arab world and in Europe, as Morocco is also the first Arab team to reach a World Cup semifinal.
"My heart will stop, what a team, what stamina, what an achievement," Ilham El Idrissi, a 34-year-old woman, told Agence France-Presse in Casablanca.
Argentina and Lionel Messi will face 2018 losing finalists Croatia in the other semifinal after the Croatians dumped out pretournament favorite Brazil on Friday.
The five-time champion crashed out in dramatic fashion, losing on penalties after a 1-1 draw, while Argentina survived a fightback from the Netherlands to also win in a shootout.
Neymar 'psychologically destroyed' by World Cup exit
Neymar said Saturday he was "psychologically destroyed" by Brazil's elimination from the World Cup in a penalty shootout defeat to Croatia and admitted it hurt more than any other loss in his career.
The 30-year-old scored a superb individual effort to equal Pele's record goal-scoring haul of 77 goals for the Selecao in Friday's match that finished 1-1 after extra time.
But he never got to take a spot kick in the shootout that Croatia won 4-2 to move into the semifinals.
Pretournament favorite Brazil must now wait at least another four years to win a sixth World Cup -- the last dating back to 2002.
"I am psychologically destroyed. It is definitely the defeat which has hurt me the most, which left me paralyzed for ten minutes after the match, after which I burst into tears without being able to stop," Neymar said in an Instagram message.
"It is going to hurt for a very long time, unfortunately," he added.
Neymar said immediately after Brazil crashed out that he might have played his last match for his country -- but Pele urged him to "keep inspiring us."
The 82-year-old said on Instagram he hoped the superstar forward would carry on playing, adding that goal-scoring achievements were no match for the honor of representing Brazil.
"You know, as I do, that no number is greater than the joy of representing our country," Pele wrote. (AFP)