AFCON 2019 — the title and the free-kick
Mahrez's defining international moment is the 2019 AFCON in Egypt, where he captained Algeria to their first continental title in 29 years and scored the most-watched African goal of the decade.
The path to the final was orderly: Algeria won all three group games (Kenya, Senegal, Tanzania), beat Guinea 3-0 in the round of 16, and edged Cote d'Ivoire on penalties in the quarter-final. The semi-final against Nigeria at the Cairo International Stadium on 14 July 2019 went 1-1 into stoppage time. In the 95th minute, with the match heading to extra time, Algeria won a free kick about 28 yards out, slightly to the right of centre. Mahrez stepped up, curled an inside-of-the-left-foot strike over the wall and into the top corner. Daniel Akpeyi was beaten on his near post; the camera cut to Algerian fans in the stadium and across the diaspora celebrating; the goal was later named CAF Goal of the Year for 2019.
The final on 19 July 2019 against Senegal was a 1-0 win sealed by a Baghdad Bounedjah goal in the second minute that took a heavy deflection. Mahrez was Algeria's primary creator across the match; the win delivered Algeria's second AFCON title (after 1990 in Algiers) and the country's first major trophy in 29 years. The tournament cemented his status as Algeria's most decorated post-Madjer footballer.
AFCON 2025 in Morocco was Mahrez's sixth and final AFCON. He scored twice against Sudan in the opening match, scored the only goal in a top-of-the-table win over Burkina Faso, scored against DR Congo in the round of 16, and was eliminated 2-0 by Nigeria in the quarter-final. His tournament total left him as Algeria's all-time AFCON top scorer with 8 goals across six editions. He announced his AFCON retirement after the Nigeria loss.