Image copyright Disney Image caption Chris Hemsworth as Thor in Avengers: Endgame

Avatar's 10-year reign as the world's highest-grossing film has ended.

On Sunday, Marvel's Avengers: Endgame crossed $2.7902bn (£2.23bn) at the box office, pushing it over the $2.7897bn earned by James Cameron's sci-fi epic.

Marvel chief Kevin Feige hailed the achievement at Comic-Con in San Diego this weekend, although it was still officially $500,000 short at the time.

In the UK, however, the film can only claim fifth place on the all-time box office chart.

Star Wars; The Force Awakens is still the country's top-earning movie, after taking £123.2m at the box office in 2015.

It is followed by two Bond movies, Skyfall and Spectre, and Avatar, which is £3m ahead of Endgame's current tally of £91m.

Image copyright Disney/Fox Image caption Three more Avatar sequels are in the works

The Force Awakens is also the box office champion in North America, meaning Endgame's record-breaking haul was down to a strong international showing.

The film, which starred Robert Downey Jr as Iron Man, Scarlett Johansson as Black Widow and Chris Hemsworth as Thor, collected $629m in China, $105m in South Korea and $85m in Brazil.

Disney boss Alan Horn said fans had taken the film to "historic heights".

All-time box office chart Film Box office (billions) 1) Avengers: Endgame (2019) $2.790 2) Avatar (2009) $2.789 3) Titanic (1997) $2.187 4) Star Wars: The Force Awakens (2015) $2.068 5) Avengers: Infinity War (2018) $2.048 6) Jurassic World (2015) $1.671 7) Marvel's The Avengers (2012) $1.518 8) Furious 7 (2015) $1.516 9) Avengers: Age of Ultron (2015) $1.405 10) Black Panther (2018) $1.346

Avengers: Endgame has not just been a success at the box office - it has also drawn widespread critical acclaim.

Reviews when it was released spawned descriptions such as "glorious", "irresistible", "intensely satisfying" and "masterful".

Its score on reviews aggregator Rotten Tomatoes is over 90%.

Disney bought Marvel Studios in 2009 and recently completed its acquisition of Fox, which owned the rights to Avatar.

That means the "House of Mouse" is now home to seven of the top 10 highest-grossing films of all time - including all four Avengers films.

Marvel announced its next 10 superhero movies, with seven due in 2021 alone, at Comic Con in San Diego this weekend.

What are the numbers?

Avengers: Endgame has set numerous box office records already - including the biggest global opening of all time at $1.22bn when it was released in April, breaking the record of 2018's Avengers: Infinity War.

An Avengers: Endgame re-release with added footage at the end of June, and the recent release of Spider-Man: Far from Home, helped give Endgame a box-office boost.

It finally surpassed the $2.9bn mark on Sunday - but box-office figures are not adjusted for inflation and Avatar would still be ahead if they were.

Even then, though, James Cameron's ecological allegory wouldn't be the top dog. Film historians estimate that Gone With the Wind still has a case for being the most successful film of all time.

According to the Guinness Book of Records, its inflation-adjusted box office takings would be $3.44 billion (£2.7bn).

What's it all about?

Endgame is the 22nd offering in the Marvel Studios superhero franchise and the fourth in the blockbuster Avengers series.

Media playback is unsupported on your device Media caption Watch the Avengers: Endgame trailer

Film experts say fans embracing the Avengers characters has helped create a worldwide phenomenon.

The Marvel Cinematic Universe (MCU) franchise began with Iron Man in 2008.

Most of the storylines in the Marvel movies since then have had objects called Infinity Stones playing a significant role.

Pats on the back from the bosses

Kevin Feige slipped out congratulations at Comic Con as he announced a bumper crop of 10 new superhero movies.

He admitted it would be "a matter of days" before Endgame became "the biggest film in history" and that "if you adjust for inflation, [James Cameron] still holds the title".

But he added to a large ovation: "But for right now today in Hall H, thanks to you, Avengers: Endgame is the biggest film of all time."

Alan Horn said in a statement: "Huge congratulations to the Marvel Studios and Walt Disney Studios teams, and thank you to the fans around the world who lifted Avengers: Endgame to these historic heights."

Actor Chris Hemsworth - aka Thor - said on Instagram: "Thank you to all the fans around the world that lifted Avengers Endgame to historic heights making it the top grossing film of all time!"

Avatar 2 has a current release date of December 2021.

Follow us on Facebook, on Twitter @BBCNewsEnts, or on Instagram at bbcnewsents. If you have a story suggestion email entertainment.news@bbc.co.uk.