The surprise success of the first “Guardians of the Galaxy,” with its intergalactic gang of misfits and quirky tone, launched Marvel Studios into making action movies starring lesser-known comic book figures that could make audiences laugh.

Two years later, the bet that comedy could help catapult characters such as the “Guardians,” “Ant-Man” and “Doctor Strange” into box office stars has paid off again.

The “Guardians,” led by actor Chris Pratt’s Peter Quill, debuted in 2014 with more than $700 million at the global box office. “Guardians of the Galaxy Vol. 2” opened in the United States last week and has already grossed more than $500 million worldwide.

“The first ‘Guardians of the Galaxy’ film allowed us to perhaps go a little bit further, not just in humor, but types of characters,” Kevin Feige, chief executive of Marvel Studios, told Reuters.

Comedy has flavored Marvel movies since 2008’s “Iron Man” featured star Robert Downey Jr.’s cocky one-liners. Many of the studio’s upcoming releases, including “Spider-Man: Homecoming” and “Thor: Ragnarok,” are expected to build humor into their audience appeal.

Image result for Humorous 'Guardians' set Marvel on new path for superhero movies

The “Guardians” franchise has gone farther by putting comedy at the core of the movie. Audiences fell in love with the roguish Peter, no-nonsense Gamora, the alien Drax who didn’t understand irony and the bromance between Rocket Raccoon and tree-alien Groot.

“Laughter is the way you hook the audience, and then you can scare them, then you can hopefully touch them emotionally deeper than they were expecting to in a film about a tree and a raccoon and aliens that don’t understand metaphors,” Feige told reporters in April.

“Humor is the secret into the audience’s other range of emotions,” he added.

It’s also part of Marvel’s strategy to keep audiences coming back for repeat viewings, which Feige compared to the fan-favorite “Star Wars” films or the “Harry Potter” franchise.

“There’s only one way to do that – to make films entertaining enough and have the mythology of our stories rich enough and deep enough that there are things worth continuing to experience,” he said in the Reuters interview.