Match ends, Qatar 1, Senegal 3.
Hosts Qatar should not be called a "failure and disappointment" after being eliminated in the group stage of the World Cup, says manager Felix Sanchez.
The Middle Eastern side battled valiantly before Senegal condemned them to a second straight defeat - and subsequently became the first country knocked out of the competition after the Netherlands drew 1-1 against Ecuador.
But African champions Senegal are up and running in Group A.
Boulaye Dia broke the deadlock four minutes before half-time, slamming home to punish Boualem Khoukhi's miscued clearance.
Looking to hit back in the second period, Qatar's hopes were dashed when former Bristol City striker Famara Diedhiou rose to flick in a glorious header just three minutes after the break.
Watford's Ismaila Sarr had an early chance on his 50th cap but struck into the side-netting, while Idrissa Gueye of Everton's rasping drive went narrowly wide.
Qatar felt they should have had a first-half penalty when Akram Afif was bundled over in the box by Sarr, but referee Antonio Lahoz pointed only for a goal-kick, much to the anger of the home supporters.
Chelsea goalkeeper Edouard Mendy made stunning reflex saves to deny Almoez Ali and Ismail Mohamad, but he could do nothing about Mohammed Muntari's powerful header.
Qatar were searching for the equaliser, but Bamba Dieng stroked in to deflate the home following and leave their team bottom of the group without a point after two games played.
"Our goal was to be competitive," said Qatar boss Sanchez. "We have been working for so many months to be able to give a good performance.
"But sometimes the match does not play out as you expect. It also depends on the opponents' performance. We didn't play at our top level.
"We are aware of how tough this competition is. We wanted to go far but we know we had limitations as a country."
Disappointment for hosts
Qatar made history by becoming the first country from this region to host the World Cup and now have the unwanted record of becoming just the second home team to exit the competition at the group stage, after South Africa in 2010.
They needed a huge favour from Ecuador, who beat them in the opening game, to salvage any hope of remaining in the tournament but Gustavo Alfaro's side claimed a draw.
It means Qatar's first appearance at a World Cup ended in dismay with two defeats within the space of six days and have just pride to play for against the Netherlands on Tuesday.
Spaniard Sanchez said: "It's a small country, not a very large population. The local league is not a very competitive one.
"It's our first time at the World Cup. If we can take part again, that would be great. It's always useful to get more experience."
Qatar, who did not have a shot on target on their World Cup debut, were backed by a raucous section of supporters behind the goal.
Others dressed in traditional attire filled the stadium at the start of their weekend, but went home disappointed as their side suffered back-to-back defeats.
Senegal's class told with their starting XI featuring 10 players who feature in Europe's top-five leagues, the exception being Sarr of Watford.
But the story could have been very different had the referee pointed to the spot for Sarr's challenge on Afif, but he left the locals outraged by failing to award a penalty.
It proved crucial as Khoukhi's scuffed clearance allowed Dia to convert the opener, and Diedhiou's unstoppable header double the advantage on 48 minutes.
Qatar, though, showed good fight to hit back via Muntari's thunderous header, which sent the partisan crowd into raptures.
But any optimism for an equaliser was killed when Dieng finished off a swift move to seal Senegal's first victory in the group.
The Qatar players were applauded by their fans at the final whistle, but some hit the deck in regret knowing their prospects of reaching the knockout stage are now over.
A 'learning experience' for Qatar - analysis
Ahmed Hashim, editor of Qatar Football Live, told BBC World Service Sport:
Disappointing in every sense. We came into this game with some hope because we knew this team could deliver. What we saw in the first game is definitely not the level we are accustomed to watching. We did see an improved performance but sadly it was not enough.
So many of the players lack competitive experience at this level. They haven't played in a tournament like this. They played as a guest team in the Concacaf Gold Cup but it does not compare playing here in the World Cup.
It will be a learning experience for the players, if they can qualify - and they will - for the next world Cup because Asia will have eight spots, they have a lot of potential and the team will be on a much better level.
After everything the team achieved, such as winning the 2019 Asian Cup, it may be a case of the team peaking too early. If we saw those kind of performances, we could have surprised the world.
- 17MohammadBooked at 20mins
- 2Carvalho Deus CorreiaSubstituted forJadoua Al Bayatiat 83'minutes
- 3Al Haj Fadlalla
- 14AhmedBooked at 45minsSubstituted forOdehat 83'minutes
- 12BoudiafSubstituted forMohammed Abdullahat 69'minutes
- 23Al Haj MadiboBooked at 90mins
- 10Al HaydosSubstituted forMuntariat 74'minutes
- 1Al Sheeb
- 4Jadoua Al Bayati
- 6Mohammed Abdullah
- 8Thaimn Qambar
- 13Djebril Mohamed
- 20Al Hajri
- 24Al Hadhrami
- 14JakobsBooked at 52minsSubstituted forCisséat 77'minutes
- 18SarrSubstituted forNdiayeat 74'minutes
- 6MendySubstituted forSarrat 77'minutes
- 15DiattaSubstituted forCissat 64'minutesBooked at 87mins
- 9DiaBooked at 30mins
- 19DiédhiouSubstituted forDiengat 74'minutes
- Antonio Miguel Mateu Lahoz
- Shots on Target
Second Half ends, Qatar 1, Senegal 3.
Corner, Senegal. Conceded by Mohammed Waad.
Corner, Senegal. Conceded by Boualem Khoukhi.
Attempt missed. Almoez Ali (Qatar) left footed shot from outside the box misses to the left. Assisted by Assim Madibo.
Assim Madibo (Qatar) is shown the yellow card for a bad foul.
Attempt blocked. Mohammed Muntari (Qatar) header from the centre of the box is blocked. Assisted by Akram Afif with a cross.
Attempt missed. Abdelkarim Hassan (Qatar) left footed shot from outside the box is close, but misses to the right. Assisted by Abdulaziz Hatem following a set piece situation.
Pathé Ciss (Senegal) is shown the yellow card for a bad foul.
Foul by Pathé Ciss (Senegal).
Ismaeel Mohammad (Qatar) wins a free kick in the attacking half.
Goal! Qatar 1, Senegal 3. Bamba Dieng (Senegal) right footed shot from the centre of the box to the centre of the goal. Assisted by Iliman Ndiaye.
Substitution, Qatar. Tarek Salman replaces Homam Ahmed.
Substitution, Qatar. Mohammed Waad replaces Pedro Miguel.
Attempt missed. Boulaye Dia (Senegal) header from the centre of the box misses to the left. Assisted by Pape Sarr with a cross following a set piece situation.
Youssouf Sabaly (Senegal) wins a free kick on the right wing.
Foul by Akram Afif (Qatar).
Corner, Senegal. Conceded by Mohammed Muntari.
Corner, Senegal. Conceded by Boualem Khoukhi.
Goal! Qatar 1, Senegal 2. Mohammed Muntari (Qatar) header from the centre of the box to the bottom left corner. Assisted by Ismaeel Mohammad with a cross.
Get your daily dose of Fifa World Cup reaction, debate & analysis with World Cup Daily on BBC Sounds