Cristiano Ronaldo hit a double in an "insane" European Championship 3-3 thriller against Hungary that gave him a new record and secured Portugal a last-16 place.
Iceland set up a last-16 clash with England as substitute Ingvi Traustason's last-gasp winner earned the Euro debutants a famous 2-1 win over Austria.
Republic of Ireland scored their own memorable 1-0 win over Italy and Belgium beat Sweden by the same score to both move into the last 16, ending the international career of Swedish legend Zlatan Ibrahimovic in defeat.
"I am proud, this was my last game in the national team, I have many fantastic memories," said the 34-year-old Ibrahimovic.
The Irish, Belgians, Iceland and Portugal join hosts France, Wales, Germany, Croatia, Italy, Switzerland, England, Poland, Spain, Slovakia, Northern Ireland and Hungary in the last 16.
The Republic will take on hosts France in Lyon on Sunday.
Ronaldo made a record 17th European Championship appearance against Hungary and twice rescued his side from an embarrassing early exit as surprise package Hungary took top place in Group F.
The Real Madrid star had looked to be feeling the pressure when he threw a reporter's microphone into a lake when approached on a pre-match team walk.
However, after disappointing performances against Iceland and Austria, Ronaldo came good just in time to set up a meeting with Croatia in Lens on Saturday.
"It was an insane match," said the three-time World Player of the Year.
"Of course, we wanted to win and qualify in first place, but the main thing is we're through."
Zoltan Gera smashed Hungary into an early lead before Ronaldo slipped in a pass to Nani to equalise before half-time.
Hungary captain Balazs Dzsudzsak twice threatened to cause a massive upset by sending Ronaldo crashing out early in the second period.
Dzsudzsak's deflected free-kick put Hungary 2-1 up, but Ronaldo responded with a sumptuous backheel for his historic goal.
Just five minutes later another deflected Dzsudzsak effort restored Hungary's lead.
Yet Ronaldo was not to be denied as a towering header moved him to within one goal of Michel Platini's record mark of nine goals in Euros finals.
Traustason's strike at the death ensured Iceland their first ever win in a major finals and second place in the group and a date with England in Nice.
"I've always supported England at big international tournaments when we haven't been playing," said Iceland co-coach Heimir Hallgrimsson.
"It's a dream come true, but we go into the game to get a result. We believe in our ability."
Jon Dadi Bodvarsson swept Iceland into an 18th-minute lead at the Stade de France, with Austria paying dearly for Aleksandar Dragovic's missed first-half penalty.
Substitute Alessandro Schoepf levelled for Austria on the hour, but Traustason's 94th-minute strike condemned Marcel Koller's side, highly-fancied to shine before the tournament, to a premature exit.
- Farewell Zlatan -
Robbie Brady's header five minutes from time sparked wild scenes of celebration in Lille as Ireland ended a much-changed Italy's 100 percent record at the tournament to set up an enticing last 16 meeting with Didier Deschamps' French side.
It was Ireland's first win over Italy in a competitive match since the 1994 World Cup in the United States.
But Martin O'Neill's men had looked set to be denied by a combination of Italy goalkeeper Salvatore Sirigu and Romanian referee Ovidiu Hategan.
Sirigu, standing in for Gianluigi Buffon in the Italian goal, made a superb save to deny Daryl Murphy, while Hategan twice waved away Irish penalty appeals in the first-half.
However, Sirigu was at fault as Brady nipped in ahead of the Paris Saint-Germain 'keeper to head into an empty net for the winner.
There was no fairytale ending for Ibrahimovic who announced before the match that he would retire from international football when Sweden's Euro campaign ends.
Ibrahimovic alluded to his rags to riches story brought up in a tough district in Malmo as he said good-bye.
"It's a nice story because where I came from, a little..what people call the ghetto, and I made that country my country."
"I hope we can find another player, not a Zlatan as I don't think in a small country like Sweden you can find someone like that, he's really unique," said Sweden boss Erik Hamren.
Ibrahimovic did have the ball in the net midway through the second-half against the star-studded Belgians, but the goal was ruled out for a foul by Marcus Berg in the build-up.
Belgium had a series of chances to kill the game off with Romelu Lukaku particularly profligate.
With six minutes remaining, Radja Nainggolan's arrowed drive into the far corner ended Swedish hopes to set up a last 16 clash with surprise package Hungary.
AFP
Thu Jun 23 2016
Hungary's players celebrate after the Euro 2016 group F football match between Hungary and Portugal at the Parc Olympique Lyonnais stadium in Decines-Charpieu, near Lyon, on June 22, 2016. / AFP PHOTO / Joe KLAMAR
Who is Prabowo Subianto, incoming president of Indonesia?
A wealthy ex-general with ties to Indonesia's popular outgoing president and its dictatorial past, looks set to be its next leader.
Iran's supreme leader says Hamas leader's death will not halt 'Axis of Resistance'
The "Axis of Resistance", built up with years of Iranian support, includes Hamas, the Lebanese Hezbollah group, the Houthi movement in Yemen, and various Shi'ite groups in Iraq and Syria.
Putin says Russia willing to seek compromises between Iran and Israel
Russia is ready to help seek compromises between arch-foes Israel and Iran, President Vladimir Putin said on Friday, saying these would be difficult but possible.
What proposals will Russia push at the BRICS summit?
The proposal is also to establish a BRICS reinsurance company to allow uninterrupted shipment of goods and key commodities between members.
Indonesia's free meals plan in the spotlight as Prabowo readies for office
Prabowo calls the programme one of the main drivers of economic growth, eventually set to add an estimated 2.5 million jobs.
Astro AWANI's revamped English news website, AWANI International, launches on Oct 21
Astro AWANI's revamped English platform delivers in-depth global news and expert analysis to keep you informed on key developments.
Israeli strikes kill 33 people in Jabalia refugee camp in Gaza, medics say
Residents of Jabalia said Israeli tanks had reached the heart of the camp after pushing through suburbs and residential districts.
Liam Payne's ex-partner calls for media restraint after 'painful' death
Cheryl Tweedy used her statement to urge the media to remember they had a seven-year-old son, Bear, who could read the reports.
Analysts: Indonesia's strong MoF leadership team to boost investor confidence
Sri Mulyani Indrawati as head of Indonesia's Ministry of Finance is expected to instil confidence among investors.
Biden offers both a carrot and a stick to Israel as his term nears an end
Israel has frequently resisted US advice and has caused political difficulties for the Biden administration.
Putin says BRICS will generate most of global economic growth
Russian President Vladimir Putin will host a summit of the group in the city of Kazan on Oct. 22-24.
ISIS Malaysia's perspective of Budget 2025
An excellent rakyat-centric budget under the overarching principle of a caring and humane economy.
Budget 2025: Record increase in STR, SARA aid initiatives
The government will provide a significant boost to the Sumbangan Tunai Rahmah (STR) and Sumbangan Asas Rahmah (SARA) initiatives next year.
Budget 2025: EPF contributions to be made mandatory for foreign workers – PM Anwar
The government plans to make it compulsory for all non-citizen workers to contribute to the Employees Provident Fund (EPF).
What policies to expect from Indonesia's new President Prabowo
Prabowo will be open to foreign investment, his aide has said, such as by offering investors management of airports and sea ports.
Budget 2025: Govt allocates RM470 mil to empower women's participation in PMKS
The Women's Leadership Apprenticeship Program will be intensified as an effort to produce more female corporate personalities.
Israel sends more troops into north Gaza, deepens raid
Residents of Jabalia in northern Gaza said Israeli tanks had reached the heart of the camp, using heavy air and ground fire.
Indonesia ramps up security ahead of Prabowo's inauguration
Prabowo Subianto will be sworn in as Indonesia's president on Sunday with Vice President-elect, Gibran Rakabuming Raka, also taking office.
Immediate allocation of RM150 mil for local authorities, DID to tackle flash floods
Datuk Seri Anwar Ibrahim said this allocation is intended to address the recent flash floods that hit the capital and several major towns.
Budget 2025: Sabah, Sarawak to continue receiving among highest allocations - PM
Sabah and Sarawak continues to be prioritised under Budget 2025, with allocations of RM6.7 billion and RM5.9 billion respectively.