RIO DE JANEIRO — Germany has defeated Sweden 2-1 to win the women’s soccer gold medal for the first time.

Germany opened the scoring with a goal by Dzsenifer Marozsan in the 48th minute and added to the lead with an own goal by Swedish defender Linda Sembrant in the 62nd.

advertisement | advertise on newsday

Sweden pulled one closer with Stina Blackstenius in the 67th but was not able to get the equalizer despite some good late chances at the Maracana Stadium.

A two-time World Cup champion, Germany had previously won three bronze medals. It was playing in the Olympic final for the first time.

Sweden has won its first silver in women’s soccer. It had never been on the podium.