After 10 years at the top of the chart, Avatar has been overtaken by Avengers: Endgame as the highest-grossing film ever.

The Marvel blockbuster which starred Robert Downey Jr, Chris Hemsworth and Scarlett Johansson has now taken $2.79 billion worldwide.

The film which was released in April hit an estimated $2.79 billion at the global box office on Sunday, surpassing the $2.789 billion taken by James Cameron’s Avatar.

Boasting an all-star cast including Robert Downey Jr as Iron Man, Chris Hemsworth as Thor, Scarlett Johansson as Black Widow and Chris Evans as Captain America, Avengers: Endgame is the 22nd entry in the MCU.

It was also the fastest film ever to reach the $1 billion barrier at the global box office, achieving the feat in just five days.

However, in the United Kingdom, the film is yet to reach the top spot, which is held by 2015’s Star Wars: The Force Awakens with £123.2 million.

Bond films Skyfall and Spectre take second and third place respectively, followed by Avatar and then Endgame.

The Force Awakens also holds the top spot in the United States ,with Endgame in second position, meaning its global title comes down to strong sales around the world. It also comes with the caveat that Avatar’s gross earnings have not been adjusted for inflation.

Hailing the achievement, the co-chairman and Chief Creative Officer of The Walt Disney Studios, Alan Horn paid tribute to Avatar director, James Cameron.

“A 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.

“Of course, even with the passage of a decade, the impact of James Cameron’s Avatar remains as powerful as ever and the astonishing achievements of both of these films are ongoing proof of the power of movies to move people and bring them together in a shared experience.

“The talented filmmakers behind these worlds have much more in store and we look forward to the future of both the Marvel Cinematic Universe (MCU) and Pandora,” Horn said.

Cameron’s Avatar, released in 2009 surpassed Titanic as the highest grossing film ever and spent 10 years with the record.