Iran blanked Costa Rica 3-0 to top Group C with an all-win record in the Fifa U-17 World Cup in Margao on Friday.
Iran had already secured a place in the Round of 16 with wins over Guinea and Germany.
In their final group engagement at the Jawaharlal Nehru Stadium, the Asian nation scored through Mohammed Ghobeishavi (25th minute), Taha Shariati (29th) and Mohammad Sardari (89th) to top the group with nine points from three matches.
Germany, who beat Guinea 3-1 at Kochi in the other match of the day, finished second with six points, and will now travel to Delhi to play against Colombia in the knockout round.
Costa Rica and Guinea finished the group stage with one point each.
While Iran, who topped this group, stay in Goa and will play against one of the third best teams from either Group A, B or F on October 17.
Germany beat Guinea 3-1, face Colombia in Round of 16
European powerhouse Germany bounced back from their shock defeat in the previous match as they beat African side Guinea 3-1 to qualify for the knockout round.
Germany scored through Jan-Fiete Arp (8th minute), Nicolas Kuehn (62nd) and Sahverdi Cetin (90+2), while Ibrahima Soumah got the lone goal for Guinea in the 26th minute in the final Group C match at the Jawaharlal Nehru International Stadium.
Germany, who had lost to Iran 0-4 in their previous match, finished second in the group with six points and qualified for the Round of 16. They face Colombia, who finished second in Group A, in the Round of 16 match in New Delhi on October 16.