The United States women's national team was knocked out of Olympic gold-medal contention after losing 1-0 to Canada in their semifinal Monday.
Jessie Fleming's second-half penalty was enough to see Canada stun the reigning world champions.
- Women's Olympics soccer bracket and fixtures
- USWNT's Rapinoe: Olympic semi defeat 'bitter to swallow'
- Murray: USWNT lack chemistry as Olympic gold dream slips away
The USWNT has now failed to reach the final in back-to-back Olympics after suffering defeat at the hands of Sweden in the quarterfinal round at Rio 2016.
The Americans have won the Olympic women's football tournament four times and have not been beaten by Canada for over 20 years. It is only the fourth time Canada has beaten the U.S. in 62 meetings.
Vlatko Andonovski's side will now play Australia in Thursday's bronze-medal match after they lost to Sweden in the other semifinal.
The USWNT suffered a major setback in a cagey first half when goalkeeper Alyssa Naeher was forced off with a knee injury after 30 minutes.
They performed better in the second half and forced Canada goalkeeper Stephanie Labbe into good saves from Carli Lloyd and Julie Ertz.
But with 15 minutes remaining, Canada was awarded a penalty through VAR after Tierna Davidson fouled Deanne Rose in the box.
Canada's veteran striker Christian Sinclair initially had the ball in her hands, but Fleming took the responsibility and kept her cool to slot home.
The USWNT come close late on when Lloyd hit the crossbar but Canada held on to win.
Canada will feature in their first ever Olympic final and play Sweden in the gold-medal match at the Olympic Stadium in Tokyo on Friday.
The USWNT has endured a difficult tournament, starting with a 3-0 loss to Sweden that snapped a 44-game unbeaten streak, and a scoreless draw with Australia in the group stage.