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.

India thump Namibia ahead of Pakistan clash
Italy crush Nepal in maiden T20 World Cup victory
Dubai Duty Free Tennis Championships reveals major expansion plan
Sri Lanka crush Oman for second victory in T20 World Cup
Philippine's rising star Alexandra Eala to debut at Dubai Tennis Open
