Robert Pattinson is new Batman; movie hits theaters in June 2021

Robert Pattinson attends the HFPA & Participant Media Honour Help Refugees' during the 72nd annual Cannes Film Festival on May 19, 2019 in Cannes, France. (Photo by Antony Jones/Getty Images)

LOS ANGELES — Robert Pattinson will be taking up residence in Gotham.

A representative for Warner Bros. confirmed Friday that the actor was in negotiations to play “The Batman” in the studio’s forthcoming superhero film that Matt Reeves is set to direct.

Variety reported the 33-year-old “Twilight” star is officially the superhero in the film, which comes out in June 2021.

Earlier reports that Pattinson and “Tolkien” star Nicholas Hoult were the front-runners for the role had some observers skeptical that the “Twilight” actor was a good fit as the Caped Crusader.

Petitions were launched calling for Pattinson to be replaced before he had even been officially cast.

“Don’t make the Batfleck mistake again,” one petition implored.

That refers to the controversy behind Ben Affleck taking over the role in “Batman v Superman: Dawn of Justice,” “Suicide Squad” and “Justice League” — a selection that did not go over well with some DC Comics devotees.

But there was also plenty of support for Pattinson, with some pointing out similar hoopla early on surrounded Heath Ledger’s selection as the Joker in “The Dark Knight.”

That performance earned Ledger, who died in 2008 from an accidental overdose, a posthumous Oscar for best supporting actor.

Notice: you are using an outdated browser. Microsoft does not recommend using IE as your default browser. Some features on this website, like video and images, might not work properly. For the best experience, please upgrade your browser.