The U.S. Under-17 women’s youth national team defeated Morocco, 4-0, in its first-round finale at the U-17 Women’s World Cup in Goa, India on Monday.

That meant the Americans finished atop Group A to set up a quarterfinal date with Group B runner-up Nigeria in Navi Mumbai on Friday (FS2; 7 a.m. ET). Brazil finished second, also with seven points, but the U.S. held the advantage in goal differential +12 to +5.

The USA controlled the majority of the possession as and it paid off when midfielder Charlotte Kohler opened the scoring with a nifty finish in the 24th minute.

Despite a disciplined defensive effort from the Atlas Lionesses, who played most of the game in a very low defensive block with three midfielders playing just in front of five defenders, the floodgates opened midway through the second half as Kohler added another and World Cup debutant Samantha Smith bagged a brace in a 13-minute span. It was also Smith’s first U-17 cap.

The victory clinched the USA’s return to the knockout stage of the U-17 Women’s World Cup for the first time since the inaugural tournament in 2008, when it finished runner-up to Korea DPR in New Zealand. It was also the first time the USA has won its group in the tournament.

The match kicked off in a driving rain, but that served to cool down the humid India night just a bit.

Morocco proved tough to break in the game’s early going. The U.S. also rotated players from its second group stage match as head coach Natalia Astrain made seven changes to the starting XI and got the opportunity to rest the legs of numerous players.

The breakthrough came in the 24th minute as forward Melina Rebimbas played Kohler from the right edge of the box and the Northern California native one-timed a bouncing shot just inside the right post.

The USA thought it had earned a penalty kick on a hand ball in first half stoppage time, but a VAR review ruled that midfielder Lauren Martinho was just a step offside before taking the shot that was blocked by the hand of a Moroccan defender.

The Moroccan defense started to tire as the game wore in the second half as substitutes Smith and Amalia Villareal played big roles. Smith entered the match after the break, becoming the 18th and final U.S. field player to log minutes at the World Cup, and the Boise, Idaho native made the most of her international debut.

In the 68th minute, Emeri Adames made a run down the left wing before sending a cross in for Smith, who battled with her defender to knock the ball into the net on the slide.

After a brief VAR review determined that Adames was onside on her run through, the referee pointed to the center, sparking a second goal celebration from the U.S. players.

Kohler netted her second goal five minutes later, making another run into the box before finishing a cross from forward Villarreal. Kohler’s three goals lead the U.S. team and are tied for the tournament lead.

Smith put an exclamation point on the match in the 81st minute, scoring from almost the same spot as her first goal. Villarreal made a run down the left side before playing a low cross to Smith, who got just inside her defender to send another first-time shot past the goalkeeper.

Several U.S. players received some rest. Captain Riley Jackson, Martinho and right back Gisele Thompson each played a half while left back Savannah King and winger Onyeka Gamero did not play, giving the USA the opportunity to have some fresh legs for its quarterfinal.