Spain secured Tokyo 2020 Olympic qualification by topping a closely-contested Group A at the UEFA European Under-21 Championship on goal difference.
Three teams ended level at the conclusion of the group stage with Spain, hosts Italy and Poland all on two wins and one defeat from their matches.
Poland had headed into the final game only requiring a draw against Spain to secure top spot, but quickly found themselves trailing.
Pablo Fornals gave Spain a 17th-minute lead by turning home an Aarón Martín cross, with the advantage soon doubled after Mikel Oyarzabal fired into the Polish net after Fabián Ruiz saw a shot blocked.
Ruiz got on the scoresheet four minutes later to give Spain a comfortable halftime cushion.
With goal difference vital in the group, Spain pushed on in search of more at Stadio Renato Dall’Ara.
Efforts from the Real Madrid duo of Dani Ceballos and Borja Mayoral in the 71st and 90th minutes, respectively, saw Spain celebrate a 5-0 victory.
The result consigned Poland to third in the group, while Spain celebrated topping the standings ahead of Italy.
The Italians clinched their second victory by overcoming Belgium 3-1, thanks in part to efforts from Nicolo Barella and Patrick Cutrone either side of halftime.
Belgium threatened a fightback with Yari Verschaeren reducing the deficit in the 79th minute, but Federico Chiesa sealed Italy’s victory 10 minutes later.
Spain topped the group due to having better head-to-head goal difference over Italy and Poland.
Spain became the second team assured of a Tokyo 2020 Olympic berth, alongside host nation Japan.
Italy could still progress to the semi-finals and the Olympic Games, should they end as the best runner-up after the group stage is completed.