Stina Blackstenius scored the go-ahead goal just minutes into the second half and Sweden surprised Germany with a 2-1 quarterfinal victory Saturday night in Rennes, France.

The second-ranked Germans, who won back-to-back World Cup titles in 2003 and 2007, were the presumptive favorites on their side of the bracket. Instead, they’ll head home.

Ninth-ranked Sweden goes on to face the Netherlands in a semifinal match on Wednesday in Lyon.

The game was a rematch of the 2003 Cup final, which Germany won 2-0 in Shanghai. The teams also met in the final at the 2016 Olympics, with Germany winning its first gold medal with a 2-1 victory.

Lina Magull’sfinish on a half-volley put Germany up in the 16th minute.

Sweden’s Sofia Jakobsson tied it in the 22nd minute with a strike that went under the outstretched leg of German goalkeeper Almuth Schult.

It was the first goal the Germans had allowed at the Cup, stopping a streak of 381 scoreless minutes.

Blackstenius scored on a rebound off Fridolina Rolfo’s header just about three minutes into the second half to break the stalemate.

Netherlands 2, Italy 0: Vivianne Miedema and Stefanie van der Gragt headed in free kicks to send the Netherlands into its first Cup semifinal.

In the sweltering heat of the northeast French city of Valenciennes, the set-piece specialists of the tournament made the most of Sherida Spitse’s deliveries to secure victory for the European champions.

The Dutch have made the semifinals in only their second Cup appearance.