Doha (AFP) - Host nation Qatar were eliminated from the World Cup on Friday after a second straight defeat as Iran beat Wales 2-0 to breathe new life into a campaign overshadowed by mass anti-government protests at home.
Qatar lost 3-1 to Senegal and became the first team to be knocked out of this World Cup after the Netherlands and Ecuador drew 1-1 in the other Group A game.
Asian champions Qatar had high hopes coming into the tournament but become only the second home team to crash out in the group stage, after South Africa in 2010.
Goals from Boulaye Dia, Famara Diedhiou and Bamba Dieng were enough to give African champions Senegal the win.
It is the first time the World Cup hosts have gone out after just two games.
"We would like to say we're very sorry to the supporters, to the country," said Qatar defender Tarek Salman, who was a second-half substitute.
"We have made them feel bad about losing two games in a row in the World Cup."
The Netherlands, who have chalked up two wins, will qualify for the last 16 by avoiding defeat to Qatar in their final match.
Senegal must beat Ecuador to advance to the knockout phase.
Emotional Iran leave it late
The Iranian players sang the national anthem before their last-gasp win over Wales, having opted to stay silent in their opener in Qatar in an apparent gesture of support for anti-government protesters.And the Iranians were worthy winners against a team reduced to 10 men late in the match.
Iran, who would have been eliminated if they had lost, punished Gareth Bale's Wales in the eighth minute of injury time when substitute Rouzbeh Cheshmi smashed home.
The Iranians sent their thousands of fans at the Ahmad Bin Ali Stadium in Doha wild when Ramin Rezaeian clipped in a second goal on the counter-attack.
There were emotional scenes as Iran's players and staff, including their Portuguese coach Carlos Queiroz, embraced on the pitch and took in the acclaim of their supporters.
Mehdi Taremi, the team's star striker, paid tribute to Iran's fans.
"Thank you to our supporters, they helped us all the time," said Taremi, who was cut down by Wayne Hennessey when the goalkeeper came haring out of his goal.
Hennessey was sent off in the 86th minute, earning the first red card of the World Cup following a VAR review.
"We need those supporters to support us like always," added Taremi, whose side will reach the last 16 if they win a politically charged clash with the United States on Tuesday.
"Even those who are in Iran behind their TV, we need their positive energy.
"We have a dream and we want to give that dream a chance."
Iran were thumped 6-2 by England in their opening match.
Iran has been shaken by two months of nationwide protests since the death of 22-year-old Mahsa Amini in morality police custody on September 16.
Amini, a 22-year-old Iranian of Kurdish origin, died three days after her arrest in Tehran over an alleged breach of the dress code for women, which includes the mandatory hijab headscarf.
An AFP photographer at the stadium on Friday witnessed security staff confiscating a fan's flag emblazoned with the slogan of the protests, "Woman, Life, Freedom".
Some Iranian fans were in tears during the singing of the anthem.
Brazil misses next game
Brazil's team camp announced that superstar forward Neymar would miss the side's next game against Switzerland after he suffered ankle ligament damage in their opening 2-0 win against Serbia.
England head into their second match of the tournament against the United States later Friday knowing victory in the Group B clash would secure a place in the last 16.
But Gareth Southgate's men will have to overcome a talented young side and the weight of history.
The USA beat England at the 1950 tournament in one of the biggest shocks in World Cup history and in 2010 held a star-studded team to a 1-1 draw.
England are still bidding for a first major tournament title in 56 years after losing last year's European Championship final to Italy on penalties.
They were given a boost ahead of the USA game, with captain Harry Kane passed fit despite taking a knock to his ankle against Iran.