Robert Pattinson is officially the latest Batman.

Warner Bros. has closed a deal for the “Twilight” star to play the Caped Crusader in “The Batman.”

Matt Reeves’ superhero tentpole hits theaters on June 25, 2021. Variety first reported on May 16 that Pattinson was in negotiations for the part. The studio verified on Friday that he had signed a deal.

The Pre-production on the Warner Bros. DC Comics pic is supposed to start this summer. No official commencement date has been set for filming “The Batman.”

Reeves, the filmmaker behind the last-two “Planet of the Apes” series, considered “Batman” directing duties of Ben Affleck in January 2017. Reeves will produce “The Batman” by his “Planet of the Apes” contributor Dylan Clark.

Affleck starred as Batman in two titles directed by Zack Snyder: 2016’s “Batman v Superman: Dawn of Justice” and 2017’s “Justice League.” Both films received mixed reviews and were a disappointment for Warner Bros. in its efforts to compete with Marvel Studios in the superhero realm.

Pattinson became a star following the breakout success of the five-film “Twilight” franchise, in which he portrayed the vampire Edward Cullen opposite Kristen Stewart’s Bella Swan.

Pattinson is starring with John David Washington in Christopher Nolan’s latest film, “Tenet,” set to open July 17, 2020. He toplines “The Lighthouse,” which premiered at the Cannes Film Festival, and performed in Claire Denis’ “High Life,” “The King” for Netflix and “Waiting for the Barbarians.”

He is repped with WME, the Curtis Brown Group, and 3 Arts Entertainment.