Marvel and Sony surprised everyone when they came together to bring Spider-Man into the Marvel Cinematic Universe last year. Now, with his first solo outing set to release this weekend, Marvel Studios head Kevin Feige has hinted at what fans can expect from the character going forward, and it seems there's a clear five-movie storyline set in place.

RELATED: Mondo Unveils Spider-Man: Homecoming Poster.

Tom Holland's Spider-Man made his debut in last year's Captain America: Civil War and according to Feige (via The Toronto Sun), that was part of their five-movie arc for the character, which is set to conclude within the sequel to Spider-Man: Homecoming. As Feige explains, the events of Civil War, which Peter only played a small role in, will "directly inform" the opening of Homecoming as well as his state of mind as he returns to his normal day-to-day life.

“We are looking at a five-movie storyline — Civil War, Homecoming, Avengers: Infinity War, untitled Avengers, Homecoming 2 — or whatever we end up calling it — as an amazing five-story journey for Peter Parker,” Feige says. “In the way that the events of Civil War directly inform the opening of Homecoming and his state of mind as he goes back to high school, so too will the events of the next two Avengers movies as he continues with high school. This original 22-movie arc ends with the untitled Avengers in May of 2019 and then two months later it will be Peter and Spider-Man (on July 5, 2019) that usher us into the aftermath and how things proceed from there.”

Of course, Civil War was only the start for the character. The next Avengers film will see the web-slinger join back up with the Avengers on screen to help take down their biggest threat yet -- Thanos -- and that film is sure to have a big influence on Peter's life as he struggles to balance high school and the life of a hero. And while we still don't know what to expect from the untitled fourth Avenges film, Feige makes it clear that film, which will take place before Homecoming 2 will also have a big impact on Peter's life going forward.

This shouldn't be too surprising, though. After all, the follow-up to Homecoming is the next planned film in the Marvel Cinematic Universe following Avengers 4, and Feige has already revealed that film will play heavily into Spider-Man's second solo outing in the MCU.

RELATED: Watch Peter Parker’s Vlog from the Spider-Man: Homecoming Opening.

Arriving July 7, director Jon Watts’ Spider-Man: Homecoming stars Tom Holland as Spider-Man and Michael Keaton as Vulture, in addition to Zendaya, Donald Glover, Jacob Batalon, Laura Harrier, Tony Revolori, Tyne Daly, Bokeem Woodbine, Marisa Tomei and Robert Downey Jr. Tickets are on sale now.