The World Cup will reach its climax this weekend as the MetLife Stadium in New Jersey gets set to host the final of the tournament this Sunday.
The biggest tournament in the history of the competition, the World Cup in North America, started with 48 teams, spread across 12 groups of four, with several players who went to the tournament plying their trade in the Scottish Premiership. with represenatives from Celtic, Rangers, Hearts, Hibs, Motherwell and beyond.
There were 20 players from the Scottish top flight in their respective countries' squads, with many appearing at the tournament - and some even making the latter stages. But which players performed the best?
Here, we rank all 20 Scottish Premiership stars who went to the World Cup this summer by their average rating* at the tournament.
*Provided by popular football statistics website FotMob.

1. Elijah Just - New Zealand
Despite going out in the group stages of the tournament, the Motherwell playmaker was the highest ranked Scottish Premiership star at the tournament, with an average rating of 7.73. He equalled Henrik Larsson's World Cup goal tally for a Scottish club player by scoring three goals in three games at the World Cup. | Getty Images Photo: Getty Images

2. Nico Raskin - Belgium
The Rangers midfielder went further than any other Scottish Premiership midfielder at the tournament, featuring in all six games for Belgium before they were knocked out by Spain in the quarter-finals. Raskin ended the tournament with an average rating of 6.98, registering two assists alongside a passing accuracy rate of 83.6 per cent. | Getty Images Photo: Getty Images

3. Daizen Maeda - Japan
A key player for a Japan squad that made it to the last-32 before being beaten by a last minute goal against Brazil, Maeda started three of their four games at the tournament, and recorded an average rating of 6.98. | AFP via Getty Images Photo: AFP via Getty Images

4. Alistair Johnston - Canada
The Canadian right-back recovered from a hamstring injury to help Celtic lift a fifth successive title in the final part of last season, and went on to play every game for the co-hosts as this summer's World Cup, as they made it through to the last-16. Given an average rating of 6.93, Johnston created nine chances at the tournament. | NATHAN DENETTE/The Canadian Pres Photo: NATHAN DENETTE/The Canadian Pres