Women in Music 2016

Jared Leto to Play Batman Villain The Joker in Upcoming 'Suicide Squad' Film

Frederick M. Brown/Getty Images
Jared Leto attends The Hollywood Reporter's Annual Nominees Night Party at Spago on February 10, 2014 in Beverly Hills, California. 

Will Smith set to play Batman foe Deadshot.

Will Smith, Tom Hardy, Margot Robbie and Jared Leto are officially set to star in Suicide Squad, Warner Bros. announced Tuesday.

Also cast in the movie based on the DC Entertainment villains-forced-to-be-heroes are Jai Courtney and Cara Delevingne. Much of the castings have been previously reported, but the studio also confirmed which characters the actors will play.

Smith will play Deadshot, best known as a Batman villain, while Hardy plays the group's leader, Rick Flagg.

Jared Leto on 30 Seconds to Mars' Doc 'Artifact'

Leto will take on the Joker, while Robbie will play Harley Quinn, his on-and-off girlfriend. Courtney will be Boomerang, while Delevingne, the model-turned-actress who is also in Warners' Pan tentpole, will play Enchantress, a sorceress.

David Ayer is writing the script as well as directing.

Charles Roven and Richard Suckle are producing. Exec producing are Zack Snyderand Deborah Snyder, who are already shepherding many of the DC movies, as well asColin Wilson and DC's COO Geoff Johns.

Jesse Eisenberg, who was rumored to be involved with the movie, is not part of the official team, nor the official cast, according to sources. But that does not rule out a cameo appearance for him or other actors playing villains or heroes in the Warners' other DC-based movies.

"The Warner Bros. roots are deep on this one," said Greg Silverman, president, creative development and worldwide production, in the announcement.

"David Ayer returns to the studio where he wrote Training Day and brings his incredible ability to craft multidimensional villains to this iconic DC property with a cast of longtime Warner collaborators Will Smith and Tom Hardy, and other new and returning favorites: Margot, Jared, Jai and Cara," Silverman continued. "We look forward to seeing this terrific ensemble, under Ayer's amazing guidance, give new meaning to what it means to be a villain and what it means to be a hero."

The movie has a release date of Aug. 5, 2016.

This article originally appeared on The Hollywood Reporter.