Roberto Firmino scored the goal which saw Liverpool crowned Club World Cup champions on a night which did little to enhance FIFA's decision to stage major tournaments in Qatar.
The Brazil international scored in a 1-0 win against compatriots Flamengo in the extra period to ease the feeling of injustice which had unfolded deep into added time at the end of 90 minutes.
Jurgen Klopp's side had a penalty chalked off by VAR after Qatari referee Abdulrahman Al Jassim consulted his pitchside monitor and ruled Sadio Mane had been fouled outside the area.
However, instead of a free-kick and red card for Rafinha Al Jassim awarded a drop-ball to Flamengo, just the latest on a night of strange decisions.
At that point it seemed it was going to be fourth time unlucky for Liverpool, who had come up short in this competition in 1981, 1984 and 2005.
You could almost hear a collective "told you so" from the critics back in England who felt Klopp should have prioritised the Carabao Cup - instead of sending out a youth team to get beat 5-0 by Aston Villa - over this tournament.
However, Firmino - who had missed the first chance after just 42 seconds - finished off a sweeping move started by Jordan Henderson, benefiting from Mane's hold-up play and lay-off 10 minutes into the first 15 extra minutes.
It was an historic goal which saw the Reds become the first English side to win an unprecedented treble of Champions League, European Super Cup and Club World Cup.
FIFA's plan was for this event to showcase Qatar's footballing capabilities to the rest of the globe ahead of the 2022 World Cup controversially awarded to the Gulf state.
However, the appointment of a local official with a lack of experience for the final left organisers open to criticism.
The 32-year-old referee, who previous experience included the 2017 Under-17 World Cup and video assistant for the 2018 World Cup in Russia, was officiating the most high-profile game of his career.
Liverpool should have put the game beyond doubt long before the referee started to have an impact as Firmino, Naby Keita and Trent Alexander-Arnold all had chances in the opening 10 minutes.
But their early confidence and dominance soon waned as, with Flamengo happy to make the contest more of a scrap than a beauty contest, the Brazilians provided a test.
Virgil Van Dijk's return to central defence had the desired effect, blocking the best chance of the half when Bruno Henrique burst free.
Firmino began the second half as he had done the first with an early chance, hitting the post with the ball spinning back across goal, with Salah stabbing an Alexander-Arnold cross wide.
Alisson Becker denied Gabriel Barbosa twice, once from an overhead kick, but everything seemed to be just that fraction off for Liverpool: passes fell short, first touches went long, and as a result they struggled to properly open up Flamengo.
That was amplified when Alex Oxlade-Chamberlain limped off having gone down thumping the turf in agony after a challenge saw his ankle buckle.
A well-offside Salah gave the mainly Arab crowd what they had come to see by putting the ball in the net but it was not until the 80th minute that Alexander-Arnold had the team's first shot on target, quickly followed by Henderson forcing Diego Alves to tip over.
Then came the controversy and confusion with Rafinha remaining on a booking, initially benefiting from the law of double-jeopardy for conceding a penalty and then from the inaccurate application of the laws by the referee, who awarded a drop-ball and not a foul.
Thankfully Firmino found a way to decide the game without the need for official intervention and Salah and Van Dijk both had shots saved which could have put the result beyond doubt.
When substitute Lincoln blazed over in the final minute of extra time the job was done and Liverpool had completed their 'moon landing' in conquering the world.
They return home with a 66th trophy in the club's history now focused on becoming champions of England, with the added bonus that Manchester City's victory over Leicester ensured their lead at the top of the Premier League remains 10 points.
Opta facts
- Liverpool have become the second English side to win the FIFA Club World Cup, and the first since Manchester United in 2008.
- Flamengo are the fourth Brazilian club to finish as FIFA Club World Cup runners-up (also Vasco da Gama in 2000, Santos in 2011 and Grêmio in 2017); no other nation has had more second-place finishes (level with Argentina).
- This was only the fourth FIFA Club World Cup final to go to extra-time, after 2000, 2009 and 2016.
- European sides have now won 12 of the last 13 Club World Cup tournaments, including each of the last seven consecutively.
- This was only the second time an English side defeated Brazilian opposition in a competitive fixture, after Manchester United’s 1-0 win over Palmeiras in the 1999 Inter-Continental Cup final.
- Just two of the last 10 Club World Cup finals have seen both teams score, with the winning finalist keeping a clean sheet on eight occasions in the past 10 years of the competition.
- Roberto Firmino has scored in back-to-back appearances for Liverpool in all competitions for the first time since January, netting the winning goal in both of their matches at the 2019 FIFA Club World Cup.
- Sadio Mane has been directly involved in more goals in all competitions in 2019 than any other Liverpool player (38 - 30 goals, 8 assists), with only Raheem Sterling (44) and Sergio Aguero (39) involved in more among players for all Premier League clubs this calendar year.