“Spring Breakers” director Harmony Korine, for the first time in his career, has cast an Oscar-winning actor to star in his movie. Sources tell Variety that Jamie Foxx is attached to topline ensemble gangster drama “The Trap.”

Korine will write and direct the feature,  which the controversial filmmaker behind “Kids” and “Trash Humpers” has described as “his most ambitious film to date.” Benicio del Toro is also attached to star.

John Lesher and Charles-Marie Anthonioz are producing the film.

Plot details on “The Trap” are being kept under wraps. The revenge pic is expected to shoot early next year in Miami.

Following the success of of his last project, “Spring Breakers,” which earned Korine and star James Franco critical acclaim, more A-list talent should circle the gangster drama.

Foxx, who last appeared in “The Amazing Spider-Man 2,” has two holiday films opening this year: “Horrible Bosses 2” at Thanksgiving and Sony’s “Annie” reboot over Christmas.

He is repped by CAA and LBI Entertainment.