GUADALAJARA, Mexico (AP) _ Morocco became the first African team ever to make the second round of the World Cup, stunning Portugal 3-1 Wednesday to win Group F.

The Moroccans finished 1-0-2 in a group where they were considered rank outsiders. They tied both seeded Poland and European power England 0-0 before romping past the Portuguese, who finished 1-2 and last in the division.

Getting two goals from Abderrazak Khairi and one from Abdelkarim Merry, Morocco moved on to a match next Tuesday in Monterrey against the second-place team in Group E.

Morocco took the lead in the 18th minute with its first goal of the tournament, a 30-yard drive from Khairi.

Eight minutes later, Morocco went up 2-0, again thanks to Khairi. He volleyed a magnificent crossing pass from Labd Khalifa past goalie Vitor Damas.

Merry made it 3-0 at 61 minutes, collecting a pass over the defense by Mohammed Timoumi and powering the ball past Damas.

Portugal broke through with 11 minutes to go on an 18-yard chip shot by Diamantino.

Earlier, El Idrissi Boudebala shot narrowly wide for Morocco in the 13th minute, then just missed two minutes later.

Portugal responded with a header from Antonio Oliviera that was saved by Badou Ezaki in the Moroccan goal.

In the 32nd minute, Portugal had a great opportunity, but Paulo Futre hit the side of the net from close range.

The African team played composed soccer, while Portugal rarely threatened until it was too late.