As Marvel fans know, Brie Larson's Captain Marvel will play an important role in taking down Thanos in “Avengers: Endgame.” What is unclear, however, is how she will do it.

While everyone seems to be counting on Carol Danvers to save the day, Nick Fury should be looked into more as he may actually have a hand in all of this, at least according to an “Avengers: Endgame” theory.

It is possible that Doctor Strange traveled back in time to the events of the “Captain Marvel” film to tell her what’s about to go down. The theory explains why Nick Fury seems to know exactly what to do after the snap — to contact Captain Marvel via his pager. It may just be his stoic exterior, but Nick Fury didn't seem too shocked about people turning into dust at the end of “Infinity War.”

In “Avengers: Infinity War,” there is only one in 14 million versions of events where they could end up winning. Doctor Strange seems to have begun orchestrating the sequence that will lead to that victory by saving Tony Stark from dying at the hands of Thanos. It looks like he also believed that Nick Fury can play a crucial role in it too.

If this is the case, this would mean that by time traveling, Doctor Strange had a hand in a lot of the events that happened in the past decade within the Marvel Cinematic Universe. A clue to this is buried deep within “Captain America: Winter Soldier,” where the character was mentioned long before the accident that led him to become the Sorcerer Supreme.

This might be a testament to Marvel's storytelling and respect for continuity or just an unfortunate plot hole. However, Doctor Strange pulling the strings for the longest time is not the most ridiculous thing that could happen at this point in the story.

Fans will learn whether or not this theory pans out when “Avengers: Endgame” hits theaters on April 24. Meanwhile, catch “Captain Marvel,” which is now in theaters.