Morocco became the first African team to reach the second round of the World Cup soccer tournament, upsetting Portugal, 3-1, yesterday in Guadalajara, Mexico, to win Group F.

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

In Monterrey, Gary Lineker scored three goals in the first half as England defeated Poland, 3-0, to finish second in the group. Lineker joined Preben Elkjaer of Denmark as the only players with hat tricks in the tournament.

In Toluca, Roberto Cabanas, the former New York Cosmos forward, scored twice, including the tying goal with 14 minutes left, to give Paraguay a 2-2 tie with Belgium.

The tie meant that both teams advanced to the second round. Paraguay has four points in Group B to finish behind Mexico. Belgium was third with three points. The Belgians earned one of the four berths awarded to third-place teams.

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

England's victory, following a 1-0 loss to Portugal and a 0-0 tie with Morocco, sent it into a second-round match with Paraguay Wednesday in Mexico City.

Poland, the top seed in the group, slipped from first to third. Its next opponent will be the winner of Group D, most likely Brazil, Monday in Guadalajara.

The English, lethargic in their previous two games, got going quickly and led, 2-0, after only 14 minutes. Their passing was precise, they were outrunning the Poles to loose balls and goalkeeper Peter Shilton made several fine saves.

In the Paraguay-Belgium game, Paraguay Coach Cayetano Re was ejected by referee Bogdan Detchev of Bulgaria with seven minutes to go. Re apparently insulted Detchev from the bench.

Daniel Veyt got behind the Paraguay defense to take a long pass from Stephane Demol and put a left-footed kick over charging goalie Roberto Fernandez to give Belgium a 2-1 lead with 30 minutes left.

Enzo Scifo's free kick went into the net at 75 minutes, but another Belgian was ruled offside.

Jorge Nunes of Paraguay came close to tying it, but his shot in the 63rd minute hit a post. Then Cabanas got the tying score from short range.

Four Belgian regulars -- strikers Erwin Vandenbergh and Philippe Desmet, midfield veteran Rene Vandereycken and defender Eric Gerets -- were sidelined by injuries or illness.