Josh Brolin has been tapped to play the villainous Thanos in Marvel’s “Guardians of the Galaxy,” sources confirm to Variety.

Thanos, who first appeared in the post-credits scene in “The Avengers,” is a major villain in the Marvel universe and is also expected to appear in one, if not both, of the upcoming “Avengers” sequels.

“We’re definitely tied to ‘Avengers 3,'” director James Gunn recently said of the upcoming “Guardians of the Galaxy,” which hits theaters Aug. 1.

Co-starring Chris Pratt, Zoe Saldana and Bradley Cooper, “Guardians” is based on the Marvel comic series and tells the story of a superhero team fighting to save the world.

Latino Review first broke the Brolin news.

Watch the new ‘Guardians of the Galaxy’ Trailer: