Italy topped their group with a 4-1 win over Spain and will face Portugal in the European Under-17 Championship quarter-finals on Monday.
The Azzurrini and Spain were already qualified, but this was a head-to-head for the top spot in the group and the chance to avoid Hungary in the next round.
This 4-1 result means Italy top Group D with a 100 per cent record, having already beaten Germany 3-1 and Austria 2-1.
Lorenzo Colombo converted a penalty, Mario Soriano equalised for Spain, but Italy took control after the break with Lorenzo Moretti, Lorenzo Pirola and another Sebastiano Esposito spot-kick.
The other quarter-finals are France v Czech Republic and Belgium v Netherlands.