The Teranga Lions also needed a penalty to secure their place in the semifinal for the first time since 2009.
West African giant Senegal has reached the semifinal of the African Nations Championship, CHAN, for the first time in 14 years.
Senegal booked a ticket to the last four in Algeria following a hard-fought 1-0 win over a gallant Mauritania side on Friday night.
Midfielder Lamine Camara was the hero of the day for the Lions after he calmly converted a first-half penalty to give them the decisive win.
The decision to award the game-changing penalty came courtesy of the Video Assistant Referee, VAR, in the 34th minute.
Camara, 19, stepped up to put the ball past Mauritanian goalkeeper Namori Diaw after defender Beibou hacked Moussa Ndiaye in the box.
Mauritania bows out after a gallant run
Mauritania conceded their first goal at CHAN in the quarterfinal of the ongoing tournament and it proved to be a decisive one.
The Lions of Chinguetti looked comfortable and in control against the Teranga Lions until the game-changing moment in the 34th minute.
Senegal took over proceedings in Annaba and never looked back after Camara converted the VAR-assisted penalty.
The second half was a cagey affair and the Lions of Teranga defended stoutly to hold on to the lead and win.
They will now face the winner between debutants Madagascar and Mozambique, who go head-to-head later today.
Related content
09:19 - 23.01.2023
CHAN Video: Senegal, Ivory Coast put on show to knockout DR Congo and Uganda
The Teranga Lions and Elephants lived up to their pre-tournament hype to seal the top two places in Group B.
15:12 - 02.01.2023
Lens' surprising title charge backed unsurprisingly by their African core
Lens’ Ligue 1 title charge is being led by a core of African players, but the club, which has played host to greats like John Utaka, Rigobert Song, and Papa Bouba Diop, is no stranger to the continent’s greatness.
12:38 - 25.01.2023
LA LIGA Race for Santander African MVP award heats up
LaLiga Santander African MVP award is back with some of the continent's biggest stars as its front runners.
15:29 - 13.12.2022
WORLD CUP SQUADS Morocco staking Africa's 'underdog' claim by defeating teams almost four times their value
Morocco become the cheapest side and the first African country to advance to the semis of the 2022 World Cup, but the most expensive squads in Qatar have been revealed.
16:00 - 11.11.2022
Qatar 2022 Senegal name experienced World Cup squad with injured Sadio Mane
Senegal have taken their most experienced hands to the 2022 Qatar World Cup including Sadio Mane who is currently sidelined by injury.
17:46 - 23.12.2022
Sevilla’s Sampaoli eyes Fofana and Dieng
In Dieng and Fofana, Sampaoli sees players who could help him rebuild Sevilla