Marc Atkins/Getty Images

REIMS, France (AP) — Spain tested the United States like no other team at the Women’s World Cup.

The U.S. looked disorganized at times facing Spain’s aggressive and physical style before pulling out a 2-1 victory Monday night. It could have been just what the Americans needed: France is waiting.

Megan Rapinoe converted a pair of penalty kicks to set up the United States’ much-anticipated quarterfinal rendezvous with the hosts. The tense match was knotted at 1 until Rapinoe’s second penalty put the defending champions ahead in the 75th minute.

Rapinoe’s first came in the seventh minute to the cheers of the U.S. supporters melting in temperatures that reached nearly 90 degrees at the Stade Auguste-Delaune. They were quieted a short time later when Jennifer Hermoso tied it up for Spain with the first goal the Americans had allowed in France.

Video review was used to confirm a foul on Rose Lavelle that gave the pink-haired captain the game-winner, spoiling Spain’s spirited effort in its first knockout-round appearance at a World Cup.

The three-time World Cup winners now head to Paris to face France on Friday night.

Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.