Croatia showed their class once more by clinching their third top-three finish at the World Cup with a play-off victory over history-makers Morocco.
Zlatko Dalic's side were runners-up to France four years ago and confirmed their status as one of the elite footballing nations with another third-place finish to go alongside that secured in their competition debut in 1998.
In a frantic opening, Josko Gvardiol gave Croatia the lead on seven minutes with a superb diving header but Achraf Dari levelled just two minutes later by nodding home from close range.
Mislav Orsic curled in a sumptuous second for Croatia via the post three minutes before half-time and struck a thumping, deflected drive into the side-netting after the break.
The second half could not match the energy of a thrilling opening period and Morocco failed to find an equaliser as a fruitful campaign ended in back-to-back defeats.
Modric makes Croatia tick again
It's the game no team wants to be involved in but in the end Croatia, a country with a population under 4 million, will be highly satisfied with another outstanding showing on the global stage.
At the heart of the team is influential skipper Luka Modric, running the show once again at the age of 37 on his 162nd cap, though this could well be his last appearance at a World Cup.
Croatia's opener was straight off the training ground, Ivan Perisic flicking on a free-kick which was latched on to by Gvardiol's brilliant finish, flying through the air to head into the far corner.
But Morocco levelled immediately courtesy of Dari, a looping ball falling into his path to convert from a few yards out and spark rowdy celebrations in the stands.
Teenage midfielder Bilal El Khannouss, making his Morocco debut at 18, showed confident touches but was culpable for Croatia's second goal, giving the ball away deep in his own half and ultimately handing over victory.
Marko Livaja laid the ball off for Orsic, who curled a glorious first time finish past the despairing reach of goalkeeper Yassine Bounou and into the net via the post.
Sevilla striker Youssef En-Nesyri had Morocco's best chances for an equaliser, forcing knockout round penalty hero Dominik Livakovic into a sharp save from close range and heading on to the roof of the net in injury time.
Walid Regragui's men made history by becoming the first African side to reach the semi-finals and their passionate players and supporters have lit up this tournament.
Their following sang and banged their drum for the entirety of this game and, despite being beaten in the last four by defending champions France and here by Croatia, they will look back on their achievements at this tournament with fond memories.
helpHow to play
Rate players out of 10 throughout or after the game. The rater will close 30 minutes after the final whistle.
Rating range key1 = Give it up10 = Pure perfection
Croatia
Squad number13Player nameVlasicSquad number15Player namePasalicSquad number16Player namePetkovicSquad number26Player nameJakicLine-ups
Croatia
Formation 4-2-3-1
1Livakovic
2Stanisic24Sutalo20Gvardiol4Perisic
10Modric8Kovacic
7Majer9Kramaric18Orsic
14Livaja
1Livakovic2Stanisic24Sutalo20Gvardiol4Perisic10Modric8Kovacic7MajerSubstituted forPasalicat 66'minutes9KramaricSubstituted forVlasicat 61'minutes18OrsicSubstituted forJakicat 90+5'minutes14LivajaSubstituted forPetkovicat 66'minutesSubstitutes
3Barisic5Erlic6Lovren11Brozovic12Grbic13Vlasic15Pasalic16Petkovic17Budimir19Sosa21Vida22Juranovic23Ivusic25Sucic26JakicMorocco
Formation 4-3-3
1Bono
2Hakimi18El Yamiq20Dari25Attiat-Allah
23El Khannouss4S Amrabat11Sabiri
7Ziyech19En-Nesyri17Boufal
1Bono2Hakimi18El YamiqSubstituted forAmallahat 67'minutesBooked at 84mins20DariSubstituted forBenounat 64'minutes25Attiat-Allah23El KhannoussSubstituted forOunahiat 56'minutesBooked at 69mins4S Amrabat11SabiriSubstituted forChairat 45'minutes7Ziyech19En-Nesyri17BoufalSubstituted forZarouryat 64'minutesSubstitutes
5Aguerd6Saïss8Ounahi9Hamdallah10Zaroury12Mohamedi13Chair14Aboukhlal15Amallah16Ezzalzouli21Cheddira22Tagnaouti24Benoun26JabraneReferee:Abdulrahman Al JassimAttendance:44,137Live Text
Match ends, Croatia 2, Morocco 1.
Second Half ends, Croatia 2, Morocco 1.
Attempt missed. Youssef En-Nesyri (Morocco) header from the centre of the box is just a bit too high. Assisted by Yahya Attiat-Allah with a cross.
Foul by Bruno Petkovic (Croatia).
Selim Amallah (Morocco) wins a free kick in the defensive half.
Substitution, Croatia. Kristijan Jakic replaces Mislav Orsic.
Offside, Morocco. Sofyan Amrabat tries a through ball, but Youssef En-Nesyri is caught offside.
Attempt missed. Hakim Ziyech (Morocco) left footed shot from outside the box is high and wide to the left. Assisted by Azzedine Ounahi.
Attempt blocked. Youssef En-Nesyri (Morocco) header from the centre of the box is blocked. Assisted by Achraf Hakimi with a cross.
Foul by Bruno Petkovic (Croatia).
Azzedine Ounahi (Morocco) wins a free kick in the attacking half.
Foul by Josip Stanisic (Croatia).
Selim Amallah (Morocco) wins a free kick on the left wing.
Foul by Mario Pasalic (Croatia).
Azzedine Ounahi (Morocco) wins a free kick in the defensive half.
Offside, Morocco. Sofyan Amrabat tries a through ball, but Anass Zaroury is caught offside.
Attempt missed. Mateo Kovacic (Croatia) left footed shot from the left side of the box is close, but misses to the right. Assisted by Mislav Orsic.
Selim Amallah (Morocco) is shown the yellow card for a bad foul.
Bruno Petkovic (Croatia) wins a free kick in the defensive half.
Foul by Selim Amallah (Morocco).
Get the latest results and goal notifications for any team at the Fifa World Cup by downloading the BBC Sport app: Appleexternal-link - Androidexternal-link - Amazonexternal-link
Get your daily dose of Fifa World Cup reaction, debate & analysis with World Cup Daily on BBC Sounds