“Avengers: Endgame” crossed a huge milestone this week, and James Cameron had to pay his respects.

The Marvel blockbuster has officially overtaken “Titanic” to become the second-highest grossing film of all time at the global box office.

RELATED: ‘Avengers: Endgame’ Boasts $2 Billion Box Office In Record Time

“Titanic” was sitting at a total of $2.19 billion, counting its original release and subsequent re-releases.

As of Wednesday, “Avengers: Endgame” has now racked up $2.27 billion.

On Twitter, Cameron acknowledged his 1997 film being beaten, sharing an image of the Avengers logo sinking the Titanic with a message to everyone who worked on “Endgame”.

As some have pointed out, the Canadian director’s congratulations follows a tradition of directors passing the baton.

In 1977, Steven Spielberg took out an ad congratulating George Lucas on “Star Wars” beating the box office haul of “Jaws”. Later, Lucas returned the favour to Spielberg when “E.T.” beat “Star Wars”. 25 years later, Lucas paid it forward to Cameron when “Titanic” took the lead.

RELATED: New ‘Star Wars’ Trilogy And ‘Avatar’ Sequels Get Alternating Christmas Release Dates Beginning In 2021

Of course, there’s still some ways to go for “Endgame”. Cameron’s own “Avatar” still sits at No. 1 of all time at the global box office with $2.79 billion worldwide.