While it wasn't a perfect night for Marvel movies, two films starring some of Marvel's biggest heroes, Black Panther and Spider-Man: Into the Spider-Verse, translated their box office success into Oscar gold at the 91st Academy Awards.

Marvel Studios' Black Panther and Sony Pictures Animation's Spider-Man: Into the Spider-Verse walked away with a collective total of four wins at the 2019 Oscars.

With three wins, Black Panther officially became the most decorated superhero movie in Academy Awards history and marks Marvel Studios' first Academy Award wins.

RELATED: Black Panther Wins Marvel's First Grammy Awards

Early in the night, Ruth E. Carter won the Oscar for Best Costume Design for her Black Panther costumes.

"Marvel may have created the first black superhero," Carter said in her acceptance speech. "But through costume design we turned him into an African king."

Shortly after that, Hannah Beachler won the Oscar for Best Production Design for her work creating the world of Wakanda in Black Panther. Set Decorator Jay Hart also accepted the award.

Both Beachler and Carter are the first African-American women to win in their respective categories.

Ludwig Göransson's Black Panther score won the Oscar for Best Original Score. This is only the latest in a long list of awards the score has won, including a Grammy, a Golden Globe and a Critics Choice Award.

RELATED: Into the Spider-Verse Heroes Accept Academy Award in New Image

After picking up trophies throughout this awards season, Into the Spider-Verse won the Academy Award for Best Animated Feature.

“There’s 800 filmmakers who pushed boundaries and took risks to make people feel powerful and seen,” said Chris Miller, one of the film's producers, during his acceptance speech.

As Deadline noted, Bob Persichetti, one of the film's directors, said they were played off stage before they got the chance to thank Spider-Man creators Stan Lee and Steve Ditko, and profusely thanked them while talking to the press after the film's win.

However, Marvel movies didn't have a perfect night at the Academy Awards. Black Panther lost the Oscar for Best Picture, one of the night's highest honors, to the controversial historical drama Green Book.

In two sound categories, Black Panther lost to Bohemian Rhapsody. Black Panther's Benjamin A. Burtt and Steve Boeddeker lost the award for Best Sound Editing to John Warhurst and Nina Hartstone for their work on the Freddie Mercury biopic. Black Panther's Boeddeker, Brandon Proctor and Peter Devlin also lost the award for Best Sound Mixing to Paul Massey, Tim Cavagin and John Casali for their work on Bohemian Rhapsody.

RELATED: Into the Spider-Verse's Peter Parker Dresses Down for the Oscars Red Carpet

In a repeat of the Grammy Award results, Kendrick Lamar and SZA's "All the Stars" from Black Panther soundtrack lost the Oscar for Best Original Song to Lady Gaga, Mark Ronson and Bradley Cooper's "Shallow" from the musical drama A Star is Born.

Avengers: Infinity War walked away from the night empty-handed after losing the Academy Award for Best Visual Effects to the historical space drama First Man.

Before tonight, Marvel movies only won a total of two Oscars, despite numerous nominations. In 2005, Sony Pictures' Spider-Man 2 won the Oscar for Best Visual Effects. A decade later, Walt Disney Animation Studios' Big Hero 6, which was loosely based on a minor Marvel team, won the Oscar for Best Animated Feature in 2015.

The 91st Academy Awards were handed out by the Academy of Motion Picture Arts and Sciences on Feb. 24, 2019.