Germany had already progressed as Group C winners, while runners-up Sweden now face a two-legged play-off next month. But there was far more than just pride at stake at Stockholm's Friends Arena, with Germany smarting from their 4-4 draw in Berlin last October after throwing away a 4-0 lead.
Having last lost either a UEFA EURO or World Cup qualifier back in October 2007, Germany were heading for a rare defeat until scoring four second-half goals. Joachim Low's Germany were extending their unbeaten run to 32 in qualification matches.
Even without suspended superstar Zlatan Ibrahimovic, Sweden raced into the lead with goals by Tobias Hysen and Alexander Kacaniklic, before Arsenal's Mesut Ozil pulled one back just before the break.
The Germans then ran riot in the second-half with Bayern Munich's Mario Gotze coming on to equalise before Schurrle's hat-trick, while Hyssen pulled one back for the Swedes.
The Germans poured forward to try and get back on level terms, but Sweden doubled their lead with half-time beckoning. Fulham's Alexander Kacaniklic sprinted onto Kim Kallstrom's through ball and fired home despite the attention of Germany defender Mats Hummels with 42 minutes gone. Both goals could be blamed on Germany's back four, but the origins came when the ball was first lost in midfield.
Arsenal's Ozil celebrated his 25th birthday by pulling a crucial goal back for Germany, when he rifled home his shot from the edge of the area on the stroke of halftime.
Germany coach Low brought on Gotze for the second half and he immediately made a difference. Schurrle fed Ozil after some good work on the left wing, then the Arsenal star squared for Gotze to loop his shot around Sweden goalkeeper Johan Wiland on 53 minutes to equalise.
Germany took the lead for the first time when Schurrle pounced on a poor pass from Sweden defender Per Nilsson and although the Nuremberg man scrambled back, he lost his footing allowing the Chelsea star to fire home on 57 minutes.
Gotze set up Schuerrle to fire home on 66 minutes to make it 4-2 to the Germans, but Sweden dug deep as Hysson claimed his second goal as he beat the offside trap to volley home Larsson's free-kick on 69 minutes.