Avengers: Endgame was already darker than most entries in the franchise, and it featured the death of several prominent heroes. However, the movie had a scene involving Captain America's decapitated head.

Speaking to IMDb during Comic-Con International in San Diego, co-writer Stephen McFeely revealed what he had in mind for the "really dark" moment. "When Thanos comes back, and he comes through a hole that Nebula has created and all that, we had to decide what the playing field was for that final battle," said McFeely. "And one of the ideas was that she opens a time rift, he walks through from 2014 Earth, where he’s already gone and laid waste to the whole place. And so our heroes come out of the dust, they see this figure walking toward them, he crosses from light to dark or whatever, and it’s Thanos, and he tosses something at their feet. And it rolls and lands at Steve’s feet, and it’s his own head."

RELATED: Avengers: Endgame Extended Scene Reveals How Gamora Slipped Away

McFeely's writing partner, Christopher Markus, confirmed Cap would've still had his signature helmet on his head.

When asked why they decided to cut the moment, director Joe Russo responded, "It wasn’t us... The four of us sat in a room for months going, ‘How do we make Captain America’s severed head work? We can’t figure out where we go once he throws his head at his feet, where does the story go?’”

Anthony Russo added, "It was a favorite. It was a complicated idea [to pull off]."

RELATED: Avengers: Endgame Deleted Scene Reveals Something Rocket Will Never Unsee

Directed by Joe and Anthony Russo, Avengers: Endgame stars Robert Downey Jr. as Iron Man, Chris Evans as Captain America, Mark Ruffalo as Bruce Banner, Chris Hemsworth as Thor, Scarlett Johansson as Black Widow, Jeremy Renner as Hawkeye, Brie Larson as Captain Marvel, Paul Rudd as Ant-Man, Don Cheadle as War Machine, Karen Gillan as Nebula, Danai Gurira as Okoye and Bradley Cooper as Rocket, with Gwyneth Paltrow Pepper Potts, Jon Favreau as Happy Hogan, Benedict Wong as Wong, Tessa Thompson as Valkyrie and Josh Brolin as Thanos. The film is set for release on Digital HD on July 30 and Blu-ray and 4K UHD on Aug. 13.

(via ComicBook.com)