LYON, France (AP) -- Sophia Smith scored in extra time and the United States earned a spot in the gold medal match at the Paris Olympics with a 1-0 victory over Germany on Tuesday.
The Americans, undefeated in France under new coach Emma Hayes, will be vying for their fifth gold medal in their sixth appearance in the Olympic women's soccer final.
The United States will play the winner of Tuesday's later game between Brazil and Spain on Saturday in Paris. Germany will play in the bronze medal match on Friday at Lyon.
Smith broke the scoreless stalemate five minutes into extra time, out maneuvering defender Felicitas Rauch and German goalkeeper Ann-Katrin Berger.
After netting her third goal of the tournament, Smith fell to the ground in celebration and joined in an embrace with teammate Mallory Swanson.
At the final whistle, the U.S. players ran downfield to embrace goalkeeper Alyssa Naeher.
The Americans had routed Germany 4-1 in the group stage earlier in the tournament.
The U.S. Women's National Team has missed out on the finals at the last two Olympic tournaments, eliminated in the quarterfinals in 2016 in Rio de Janeiro and relegated to the bronze-medal match at the Tokyo Games three years ago.
Germany was missing veteran captain Alexandra Popp because of an illness. Popp was the only current German player who was also on the squad that won the gold medal in 2016.
Lea Schuller, who scored two goals against Zambia in the group finale to send Germany through to the quarterfinals, was absent because of an inflamed right knee.
The United States recalled defender Tierna Davidson to the game-day roster after she missed the last two games with a leg contusion. Defender Emily Sams, activated in Davidson's absence, returned to the alternate list.
Midfielder Sam Coffey, who missed the quarterfinals after yellow card accumulation, returned against Germany.
There were few chances on either side in the opening half. Klara Buehl forced U.S. goalkeeper Naeher into a diving save in the 29th minute but she was offside. For most of the match, Germany hunkered down on defense in the absence of Popp and Schuller.
Rose Lavelle had a chance for the U.S. early in the game but her attempt went straight into Berger's arms.
Mallory Swanson broke down the field in the 62nd and had a clear look at the goal but shot into the side netting.
The game seemed to open up in the last 20 minutes of regulation. Janina Minge got off a shot in the 73rd but it was easily saved by Naeher. Some five minutes later, Lindsey Horan's header was caught by Berger.
Swanson appeared to break through in the 85th but she was called back for offside.
The United States was in the semifinals after a hard-fought 1-0 win in extra time against Japan. Trinity Rodman scored the lone goal, her third of the tournament.
Germany advanced on penalties after a scoreless draw with Canada in the quarterfinals. Berger stopped two Canada attempts then converted on her own penalty kick to win it.
The U.S. has won 27 of its 38 games against Germany. The last time the teams faced each other in the Olympic semifinals was in 2004 when the Americans won 2-1 and went on to win the gold medal.