The advertising for Captain Marvel has not only been about promoting the movie itself. More than any other Marvel movie, a significant portion of the film's marketing has involved cross promotion with the United States military, in this case the Air Force.

A video titled "Monday Motivation: Taking Flight" makes the message direct: The superheroics and virtuous qualities of fictional Air Force pilot Carol Danvers are directly compared to real life Air Force pilots.

Air Force Thunderbird planes performed a flyover for Captain Marvel's Hollywood premiere. In multiplexes, the film is preceded by a new Air Force recruitment ad titled "Origin Story." While not directly referencing the movie, the ad's intentions could not be clearer. This is a specific drive to recruit young women who are fans of superhero movies.

Collaboration between Hollywood and the military is nothing new. The Department of Defense has long had an arrangement that, if a producer wants to feature actual U.S. military equipment in their film, the department will provide them funding and resources in exchange for following strict regulations on how the military is portrayed. This is often connected to some sort of recruitment campaign.

This goes back to the Silent Era (the first ever Best Picture winner, 1927's Wings, received Pentagon support). Films produced under this agreement include the likes of Top Gun, Black Hawk Down, Zero Dark Thirty and the Transformers series.

RELATED: VIDEO: Here's How Captain Marvel Might Connect to Avengers: Endgame

There is no official, available list of the rules films have to follow to meet the department's approval. In general, it seems it's all about showing the military in a positive light as well as meeting standards of accuracy, but the line between what's acceptable and what's not isn't always clear-cut.

For example, the first Independence Day was rejected for military support due to including Area 51 in its plot. The sequel, Independence Day: Resurgence, released 20 years later, got full military support. In the movie, Area 51 has become the headquarters for Earth Space Defense, which the real-world Army made a website for as part of a promotional campaign.

NEXT PAGE: Surprisingly, S.H.I.E.L.D. Was a Step Too Far For the Military

Marvel's history with the military has fluctuated from film to film. All three Iron Man films received official military support. While the movies do involve critique of American foreign policy in regards to weapons manufacturers, the picture of the military itself was flattering enough for the film to gain access to Air Force planes and accurate costuming. As one would expect for a patriotic World War II film, Captain America: The First Avenger also received support from the U.S. Army as well as the British Ministry of Defense.

Where Marvel and the military became conflicted was during the production of The Avengers. The military was involved in the production initially, and Hollywood's Pentagon liaison Phil Strub is thanked in the film's credits. However, late in production, someone in the chain of command ultimately took issue with S.H.I.E.L.D.'s vague, extra-governmental powers.

RELATED: Samuel L Jackson Says He Made Up Captain Marvel's Time-Travel Power

"We couldn’t reconcile the unreality of this international organization and our place in it," Strub told Wired. "To whom did S.H.I.E.L.D. answer? Did we work for S.H.I.E.L.D.? We hit that roadblock and decided we couldn’t do anything."

If S.H.I.E.L.D. might have seemed too sketchy to the Pentagon in The Avengers, it's interesting that the Department of Defense was back on board for Captain America: The Winter Soldier, wherein S.H.I.E.L.D.'s powers are even more extensive and morally objectionable. The film's extremely harsh in its political commentary, yet oddly enough that extreme harshness might have been what brought the Pentagon back.

RELATED: Captain Marvel Cast & Crew Respond to Backlash, Review Bombing

The reveal that Hydra infiltrators have taken power in S.H.I.E.L.D. and the U.S. government might reflect poorly on said organizations, but it also could be read as absolving the "real Americans" of their crimes by pinning the blame on a separate, evil group. It's this latter reading, combined with Steve Rogers and Sam Wilson being such positive portrayals of veterans, that earned Winter Soldier the department's approval.

Since Winter Soldier, though, Marvel's mostly avoided major military collaborations on its movies (though its comics division encountered controversy for almost working with military contractors Northrop Grumman). Age of Ultron and Civil War kept much of their big action set pieces outside the United States, while there's not much the military could do to assist on sci-fi films like Guardians of the Galaxy and Thor: Ragnarok.

RELATED: Captain Marvel: The Many Costumed Identities of Carol Danvers

It makes sense why Marvel would choose to again team with the Department of Defense in a major way for Captain Marvel, a film where the main heroine is an Air Force pilot. That Marvel was willing to stick to its guns on The Avengers and managed to work in some anti-establishment messages into Iron Man and Winter Soldier would imply that the studio is concerned more with telling the stories they want to tell than specifically serving as military propaganda.

That said, it is important for viewers to be aware that these military collaborations exist so they can better engage with the messages presented in their media.