The United States Under-17 Women’s National Team turned two late first-half chances into a place in the World Cup quarterfinals, defeating Spain 2–1 on Thursday in Salé, Morocco. Deus Stanislaus opened the scoring in the 43rd minute, and Maddie DiMaria doubled the lead in first-half stoppage time before the Americans protected it through sustained Spanish pressure.

Stanislaus’ opener was initially ruled offside, but a video review determined that she was onside and that her volley had crossed the goal line. Minutes later, DiMaria chased down a ball on the right, fought through the challenge and cut onto her left foot before finishing from close range. It was her 12th goal of the tournament, extending her record for the most goals by a player in one FIFA U-17 Women’s World Cup.

Spain controlled most of the ball and produced far more attempts, but the United States made its limited chances count. Captain Vera Molina pulled Spain within one in the 71st minute with a deflected effort, and goalkeeper Avellina Saunders and the American back line handled the pressure that followed through eight minutes of stoppage time.

The result gave the United States its first victory over Spain at this tournament and returned the program to the quarterfinals. The challenge becomes even sharper Sunday against defending champion Korea DPR, but the Americans arrive with a scorer in historic form and proof that they can survive a knockout match when the game does not unfold on their terms.