Rami Malek
Rami Malek will play Freddie Mercury in the upcoming Queen biopic. Pictured: Malek from the USA Network series "Mr. Robot" arrives at the 68th Primetime Emmy Awards in Los Angeles, California, Sept. 18, 2016. Reuters/Lucy Nicholson

“Mr. Robot” star Rami Malek has been tapped to play Queen frontman Freddie Mercury in a biopic about the band entitled “Bohemian Rhapsody.”

The actor will replace Sasha Baron Cohen, who left the project due to creative differences, according to Entertainment Weekly.

The screenplay for the film was written by Anthony McCarten. The movie will be directed by Bryan Singer. Original Queen members Brian May and Roger Taylor will serve as the movie’s music producers.

Cohen was tapped to play Mercury in 2010. He eventually dropped out of the project in 2013 because of creative differences from the members of the band.

In an interview Howard Stern, the actor explained the reason behind the departure, saying: “The problem is -- and I think it’s with any biopic, and I fully understand why Queen wanted to do this -- if you’re in control of your rights and your life story, why wouldn’t you depict yourself as great as possible?”

Cohen also said he had an issue about the living members of the group wanting to end the movie with the band carrying on after Mercury died of AIDS.

Aside from the upcoming film, fans can also look forward to seeing Malek in the thriller “Buster’s Mal Heart.” The film, which debuted at the Toronto International Film Festival, will hit theaters early 2017, according to Deadline. The film follows the story of Buster, a mountain man who squats in empty homes. Before he became what he is, Buster was a family guy. The movie explores how the shift from one life to another happened.

Of course, aside from his movie projects, will reprise his role as Elliot Anderson in the third season of the critically acclaimed “Mr. Robot.” The USA TV show will return next year, although an air date has not been announced.