Spain’s match with Australia had no bearing on the upcoming knockout round, but the defending champs went out with a bang on Monday in Curitiba.

In their final game of the tournament, the defending champions shut out Australia 3-0, finishing in third place in Group B. Both teams had been eliminated from contention after losses to the Netherlands and Chile.

Before lackluster performances in their two group losses, Spain looked like one of the favorites to win the championship. They were expected to make easy work of Australia, and dominated their opponent for much of the 90 minutes.

David Villa got Spain on the board with a goal in the 36th minute. It marked just the team’s second score of the entire tournament.

While Australia hung around for part of the second half, Fernando Torres seemingly put the match out of reach with a goal in the 69th minute with his first strike of the Word Cup.

Spain’s final goal didn’t come from a starter. Juan Mata replaced Villa in the 57th minute, and score the game’s final goal 25 minutes later. Cesc Fabregas got the assist. 

Even after the big victory, Spain head home under painful conditions. It's the first time since 1978 that the team has failed to advance past group play.

Below are video highlights of all three goals.

Australia vs Spain 0-3 All Goals (World Cup 2014) by hdgoals11