BERLIN — Portugal beat the Netherlands, 1-0, Sunday in Nuremberg in a game that broke the World Cup record for red cards.

Maniche scored the only goal for Portugal in the 23rd minute of a lively but ill-tempered game. Both teams ended with nine men after Costinha and Deco of Portugal and Khalid Boulahrouz and Giovanni van Bronckhorts of the Netherlands were sent off, all for their second yellow cards. The previous record for red cards in a game was three, which had happened three times. The match contained 16 yellow cards.

In the quarterfinal, Portugal will face England which squeezed past Ecuador, 1-0, to reach the quarterfinals of the World Cup.

David Beckham decided an arid game played in 33 degrees Celsius, or 91 degrees Fahrenheit, in Stuttgart when he curled a free kick in off the base of a post after 60 minutes. England, which played five midfielders and only one striker, dominated the play, but that was its only dangerous shot on goal.

In the last eight, Argentina will face the Germany. The host, continued its impressive run with a 2-0 victory over Sweden before a delirious crowd in Munich. Lukas Podolski scored twice in the first 10 minutes as Germany tore into the Swedes from the start.