Who knew the kid could take down the king?

“Spider-Man: Into the Spider-Verse,” the cinematic debut of Miles Morales, is our top superhero movie of 2018, a year that featured an abundance of them. “Spider-Verse” edged out box-office and cultural phenomenon “Black Panther” and the decade-in-the-making “Avengers: Infinity War.”

Here’s how we rank the superhero movies of 2018.

1. “Spider-Man: Into the Spider-Verse”

An animated movie taking the top spot on this list — when animation at times has been an afterthought in superhero entertainment — shows how special “Spider-Man: Into the Spider-Verse” is. From the top-notch voice cast to the groundbreaking visual imagining of this universe, this movie is the beginning of a franchise with unlimited potential from Sony Pictures Animation.

2. “Black Panther”

Bold, black and a boom at the box office. Director Ryan Coogler guided a story that was surprisingly deep emotionally and sociologically, with plot points ranging from father/son issues to the divide between African and its diaspora. The women of Wakanda were leaders both as warriors in battle and in the science lab. “Black Panther” also proved that when the original Avengers ride off into the sunset (by retirement or Thanos snap), there will be a new generation of heroes ready to lead Marvel Studios into the future.

3. “Avengers: Infinity War”

Thanos destroyed half of all existence and all talk of Marvel Studios movies never having villains that matter. The long wait to see the wielding of the Infinity Gauntlet lived up to the hype. Even among the heroes that survived, there’s no promise that they’ll make it out of May’s follow-up, “Avengers: End Game.”

4. “Aquaman”

Warner Bros. and DC Entertainment, under the direction of James Wan and the influence of Geoff John’s Aquaman comics, proved they can still be a major player in superhero cinema despite deservedly creating doubts among fans the last few years. “Aquaman” showed that “Wonder Woman” isn’t DC’s only franchise worthy of a sequel and that their superhero films can be bright, inspirational, fun and not nearly as moody as they’ve been in the past.

5. “The Incredibles 2”

Despite taking more than a decade for a sequel to arrive, the Incredibles came back strong and it shouldn’t take nearly as long for them to slap their domino masks on again. Just like “Spider-Verse,” “The Incredibles 2” made a strong case for animation to continue to have a say in the future of superhero cinema.

6. “Deadpool 2”

The most foul-mouthed superhero movie franchise of all gave us more of what made it work the first time (dirty humor), the anticipated debut of Cable and Domino and one really cruel X-Force joke.

7. “Teen Titans Go! To the Movies”

“Aquaman” wasn’t DC’s only success story at the movies this year. “Teen Titans Go! To the Movies” was easily the funniest superhero film of 2018, offering LOL moments, catchy tunes and, like “Aquaman,” a refreshing break from the bleak darkness that so often engulfs DC’s movie universe. There were also multiple jokes about the Challengers of the Unknown. No other superhero movie can give you that.

8. “Ant-Man and the Wasp”

Making not one but two “Ant-Man” movies is an underrated Marvel Studios achievement. “Ant-Man” isn’t as famous as Captain America, Thor and the Hulk, so Marvel Studios had to rely on the comedic charm of Paul Rudd (as Ant-Man) and the take-the-lead toughness of Evangeline Lilly (as the Wasp).