Robert Pattinson has been officially confirmed to play the much-loved DC Comics hero Batman.

Other names that were prospective candidates for the caped crusader included Armie Hammer, Nicholas Hoult and Aaron Taylor-Johnson. However, Warner Bros closed the deal by signing on the Twilight fame actor on Friday.

Pre-production on the Warner Bros film is expected to start this summer, although no official date has been announced.

Matt Reeves will be helming the project. Reeves had also directed the last two Plant of the Apes sequels. He will be producing the film with his Planet of the Apes collaborator Dylan Clark.

Ben Affleck starred as Batman in two titles directed by Zack Snyder, in Batman v Superman: Dawn of Justice(2016) and Justice League(2017). Both films receives mixed reviews and were a disappointment for the studio.

Pattinson becomes the youngest actor to play Batman. He is 33.

Robert Pattinson rose to fame with the five-film Twilight franchise, in which he played a vampire Edward Cullen opposite his then girlfriend, Kristen Stewart who essayed the role of Bella Swan.

He also will be part of Christopher Nolan’s next film titled, Tenet, which is set to open on July 17, 2020.

The Batman movie is slated to release in 2021.