In the Heat of the Night (1967)
In the Heat of the Night is a 1967 DeLuxe Color dramatic mystery film directed by Norman Jewison, based on the 1965 John Ball novel of the same name which tells the story of Virgil Tibbs, a black police detective from Philadelphia, who becomes involved in a murder investigation in a racist small town in Mississippi. It stars Sidney Poitier, Rod Steiger, and Warren Oates, and was produced by Walter Mirisch. The screenplay was by Stirling Silliphant.
More at Wikipedia.