With controversies like #OscarsSoWhite and the abundance of criticisms on directors' casting mostly white actors for roles sometimes even meant to be played by another race (take Scarlet Johansen's starring role of a Japanese half-cyborg in Ghost in the Shell), racial representation has been at the forefront of criticisms on Hollywood.

Amidst the criticisms, Marvel has been doing something right when it comes to diversity in casting.
Hollywood actors use the glitz & glam to cover up the filth that movie production really is like. #KevinSpacey #OscarsSoWhite
— TruthBeTold (@Big6domino) November 4, 2017
Marvel writers and casters don't shy away from making their superheroes come from underrepresented backgrounds - from Ms. Marvel AKA

The fantasy and sci-fi superhero narrative is juxtaposed with the very real human experience. Marvel is like the modern day the Greek play - the Gods and Goddesses have human-like qualities. Yet Marvel is able to reflect such human pitfalls and triumphs through a diverse cast.
Some may question the importance of having racial diversity in a cast of superheroes in fictitious empires and realms. For the viewer here on Earth, the knowledge that culture and art includes you or those who look like you can empower and resonate with a variety of moviegoers.
So for the viewer, representing different experiences transcends the silver screen. In the same way that art mimics reality, reality also mimics art.

In Marvel films, the female characters can be villainous, heroic, funny and serious. There's a spectrum of humanity captured.

All the black characters aren't killed off, and the heroes aren't all white. This is actually important, meanwhile other films have fallen in such perfunctory tropes.
“Here we go!” Marvel Studios' #ThorRagnarok is NOW PLAYING. Get your tickets: https://t.co/AZAiM8TLdp pic.twitter.com/AeZfHszHvS
— Thor (@thorofficial) November 5, 2017
There's substance to the twists and turns the characters must endure, too. Comics can be written off as mere action plots, yet Marvel's writing is able to envision something greater about social realities, including more actors than just white men trying to save the world.
Black Panther takes on Wolverine in ambitious fan trailer. https://t.co/rCNQy67npr pic.twitter.com/iXyxYKIOiR
— io9 (@io9) November 5, 2017
Even with the culmination of heroes, villains, and laymen of different racial, gender, or galactic makeup, the characters ultimately impart common ideas, mysteries and fixations on the existential struggle.