This movie is loosely based on the real-life case of Larry Davis, a drug dealer who shot six cops but was acquitted (with William Kunstler as his lawyer) after charging that the police were trying to kill him because they were involved in the drug trade. The Manhattan district attorney, Robert Morgenthau, was also nicknamed "Morgy".
There is a version of the film which features a more upbeat ending which was only shown to preview audiences. Director Sidney Lumet decided to end the film with a more downbeat ending.
Jazz musician Wynton Marsalis wrote the original score for the film but was replaced by Mark Isham after the film's preview screening which featured the film's original upbeat ending instead of the one Isham would re-score with the downbeat ending.