Fernandes double fires Portugal into World Cup
Bayern Munich star Lewandowski beat Robin Olsen from the penalty spot before Zielinksi produced a composed finish to secure the host's spot in Qatar as Zlatan Ibrahimovic's hopes of appearing at what would surely have been a final World Cup were dashed.
Sweden offered promise in the first half. Emil Forsberg placed an early shot too close to Wojciech Szczesny and Jan Bednarek blocked Dejan Kulusevski's effort.
Poland managed only one attempt on target during a tame first-half performance but needed just four minutes to hit the front after the break, Lewandowski rolling home from 12 yards after Jesper Karlstrom clumsily felled Grzegorz Krychowiak.
Szczesny made a stunning close-range save to again deny Forsberg, but Zielinski wrapped up the win when he robbed Marcus Danielson and slotted in after 72 minutes, sparking wild scenes of celebration in Chorzow.
Ibrahimovic came on with 11 minutes remaining but only had three touches as Sweden missed out on a World Cup for the third time out of the last four tournaments.