Ice Cube has joined Woody Harrelson and Ben Foster to star in Oren Moverman’s police drama “Rampart,” centered on the scandal at the LAPD’s division in the 1990s.

Project reunites Harrelson and Foster with Moverman, who directed them in “The Messenger,” his helming debut.

“Rampart,” based on James Ellroy’s screenplay, has been developed at Light stream Pictures and set up with “The Messenger” producer Lawrence Inglee and Clark Peterson (“Monster”).

The producers are in talks with several equity financiers. Principal photography is slated for late August in Los Angeles

Harrelson’s set to portray the lead character, an LAPD officer on a redemptive journey as he finds himself embroiled in scandal. Ice Cube and Foster will also play LAPD officers.

The scandal grew out of severe police misconduct in the late 1990s in the Community Resources Against Street Hoodlums (CRASH) anti-gang program including unprovoked shootings, beatings, planting of evidence, framing of suspects, stealing and dealing narcotics, bank robbery, perjury and covering up evidence.

Harrelson was nommed for a supporting actor Oscar for “The Messenger,” and Moverman was nominated for original screenplay.

Ice Cube’s been cast in the wake of his doc, “Straight Outta L.A.,” debuting at the Tribeca Film Festival. That project, which Ice Cube directed, focuses on the Oakland Raiders’ move to Los Angeles coinciding with the emergence of gangster rap in 1982 with Ice Cube detailing how his group NWA forged an unlikely relationship with the Raiders.

Ice Cube is exec producing a spinoff of “Are We There Yet” for TBS and will be seen later in August in Alcon’s comedy “Lottery Ticket.” Foster stars in Nu Image’s remake of “The Mechanic.”