Riyad Mahrez scored a wonderful goal as Algeria underlined their status as one of the favourites for the Africa Cup of Nations with a 3-0 win over Guinea which booked their place in the quarter-finals.
The Manchester City winger's superb control and composed finish in the 57th minute put his side two goals up after Youcef Belaili's 24th-minute opener in Cairo.
And Algeria sealed their progression as substitute Adam Ounas added a late third.
Djamel Belmadi's side had cruised through group stages without dropping a point or conceding a goal and they were untroubled as they set up a last-eight meeting with Mali or Ivory Coast.
Belaili set them on their way, bursting into the area from the left and sliding a low finish into the far corner from a tight angle.
Mahrez's goal was the pick of the bunch as Ismael Bennacer's deep cross from the left picked him out on the far edge of the area.
The Premier League star's superb first touch took him past his marker and into the area and with his second he fired a low left-footed shot into the corner.
Guinea, without key player Naby Keita because of a thigh injury, had no answer and their hopes were killed off in the 82nd minute following a swift Algeria break.
Ounas had only been on the pitch five minutes when he turned home Youcef Atal's low ball into the area for Algeria's third.
ga('create', 'UA-72310761-1', 'auto', {'name': 'pacontentapi'});
ga('pacontentapi.set', 'referrer', location.origin);
ga('pacontentapi.set', 'dimension1', 'By PA Sport Staff');
ga('pacontentapi.set', 'dimension2', '48734aa9-02e7-49ca-98d4-7d6fe51cc631');
ga('pacontentapi.set', 'dimension3', 'paservice:sport,paservice:sport:football,paservice:sport:match-reports,paservice:sport:world');
ga('pacontentapi.set', 'dimension6', 'story');
ga('pacontentapi.set', 'dimension7', 'composite');
ga('pacontentapi.set', 'dimension8', null);
ga('pacontentapi.set', 'dimension9', 'sport:football');
ga('pacontentapi.send', 'pageview', { 'location': location.href, 'page': (location.pathname + location.search + location.hash), 'title': 'Mahrez magic helps Algeria reach quarter-finals'});