Germany secured the bronze medal in the women's Olympic football tournament with a 1-0 win over world champions Spain, thanks to a Giulia Gwinn penalty.
Gwinn gave her side the lead in the 65th minute after converting a penalty following a foul by Spanish keeper Cata Coll.
Spain's Alexia Putellas squandered a chance to send the match to extra time as her penalty was saved by goalkeeper Ann-Katrin Berger in the final seconds of the match.
Brazil will take on the US in Saturday's gold medal match.
In women's hockey, Argentina beat Belgium 3-1 on penalties to win the bronze medal after a 2-2 draw in regulation time as forward Sofia Cairo scored on the pivotal final shot following goalkeeper Cristina Cosentino's two blocks.
It was Argentina's third bronze and sixth Olympic medal in women's hockey, their second medal in a row after receiving silver in Tokyo. Belgium will have to wait another four years to try to get their first Olympic women's medal in the event.

Egypt's Sobhi sentenced to year in prison in academic fraud case
Arsenal thrash Villa 4-1 while Chelsea and Man Utd both held
Desert Vipers head to finals after 45-run win over MI Emirates in Qualifier 1
World Sports Summit showcases Dubai’s pull as global hub for sporting icons
Pakistan's Afridi out of Big Bash League with knee injury
