In its 30-year history, Latvia has played in the A-JVM seven times, including this year's tournament.
But the Baltic nation has never reached the playoffs, until this year.
After picking up a point against Slovakia in the third group stage match, Latvia would shock the Czech Republic in the fourth and final group stage match.
Latvia was effective, and already had 2-0 after just over twelve minutes of play.
The Czech Republic managed to get back to 2-2 midway through the second period.
But barely two minutes later, Ralfs Bergmanis would give Latvia the lead again.
And that was just the beginning for the captain, who from his back position would also make it 4-2 before the end of the second period, and then complete his hat-trick with 5-2 in an empty cage.
Now Latvia is pitted against the runner-up in Sweden's group in the quarter-finals.