When the silent era was coming to an end, movie studios started to spend massive amounts of money for their films. Some of these studios ended up spending more than $200 million by today’s standards. Since then, movie budgets have only increased, especially when it comes to marketing.

So when you take inflation into account, which films were the most expensive? Here are the top five most expensive films ever made. We’ll also let you know if these massive investments ended up working in the studios’ favor. Spoiler alert: two franchises dominate the top spots.

Avengers: Infinity War – To end the Infinity Saga that Marvel Studios had spent years building up, they split the final chapter into two films. The first was “Infinity War”, which was released in 2018. With an enormous cast and large special effects budget, it cost $316 million to create. The film did great at the box office, earning $678.8 million domestically and $2.048 billion globally.

Avengers: Endgame – The second part of the chapter wrapped up the Infinity Saga, with “Avengers: Endgame” being released a year after its predecessor. The final movie was the more expensive of the two, costing $356 million. The film then set the record for most money earned worldwide with $2.796 billion, and is the second highest grossing domestic film at $858,373.

Pirates of the Caribbean: At World’s End – In 2007, the “Pirates of the Caribbean” franchise added its third film with the release of “At World’s End”. At the time, it was the most expensive film ever made with a budget of $300 million. Now, that would be a cost of $362 million. The film failed to live up to expectations domestically with $309 million, but did make $963 million worldwide.

Avengers: Age of Ultron – Surprisingly, it cost more to create “Avengers: Age of Ultron” than both “Infinity War” and “Endgame”. The film was the least well received of the “Avengers” movies, but cost $365 million to create, which now translates to $386 million. Thankfully for Marvel Studios, “Age of Ultron” rounded up $459 million domestically and $946 million worldwide.

Pirates of the Caribbean: On Stranger Tides – Four years following “At World’s End”, there was another “Pirates” movie with “On Stranger Tides”, which didn’t have main characters Orlando Bloom and Keira Knightley. Costing $378.5 million in 2011 money, it’s been adjusted to be the most expensive movie made at $422 million. “On Stranger Tides” disappointed a bit, though, earning $241 million domestically and $804 million away from the United States.