Innsbruck, Austria - David Villa scored in the second minute of stoppage time to give Spain a 2-1 victory over Sweden in Group D of Euro 2008.
It was Villa's fourth of the tournament after a hat-trick in the 4-1 defeat of Russia and puts Spain in control of the group.
Spain will qualify if Greece fail to beat Russia later in the evening.
Sweden's Zlatan Ibrahimovic had earlier cancelled out a Fernando Torres goal.
The Liverpool striker stuck out a leg in the 15th minute to turn a David Silva cross into the net following a well-worked corner.
Inter Milan's Ibrahimovic levelled in the 34th for his second goal of the tournament when he shrugged off a Sergio Ramos tackle to turn the ball into the net via the hand of keeper Iker Casillas. (dpa)

London, Feb 13 : Manchester City manager Roberto Mancini believes his team's title bid will speed up now, with several key players returning to the club from injuries and national duties.
London, Feb 13 : Manchester United's tunnel bust-up with Liverpool during their eventful Premier League clash on Saturday was sparked by a spitting storm.
Chennai, Feb 13 : The rift between BCCI and Sahara continues to carry with the BCCI Working Committee on Monday rejecting several demands of the long-time sponsor and refusing to make "exceptions"
Chennai, Feb 13 : The rift between BCCI and Sahara continues to carry with the BCCI Working Committee on Monday rejecting several demands of the long-time sponsor and refusing to make "exceptions"
London, Feb 4 (ANI): Force India driver Paul Di Resta has confessed to being under pressure to perform during his second full year on the Formula One circuit.
Chennai, Feb 1 :The much-hyped and twice postponed inaugural i1 Supercar Series will now be held in 2013, according to a press release from the promoters, Machdar Motorsports.