Description
Wealthy industrialist Phillip Colbert moves to Sparta, Mississippi, to build a factory there. Late one night, police officer Sam Wood discovers Colbert's murdered body lying in the street. Wood finds Virgil Tibbs, a black man with a fat wallet, at the train station and arrests him. Police chief Gillespie accuses him of murder and robbery but soon learns Tibbs is a top homicide inspector from Philadelphia. Tibbs wants to leave town on the next train, but his boss suggests he stay in Sparta to help with the murder investigation. Though Gillespie, like many of Sparta's white residents, is racist, he and Tibbs reluctantly agree to work together.
A doctor estimates that Colbert had been dead for a few hours when his body was found. Tibbs examines the body and concludes the murder happened earlier than the doctor thought, the killer was right-handed, and the victim had been killed elsewhere and moved to where Wood found his body.
Gillespie arrests another suspect, Harvey Oberst, who protests his innocence. The police plan to beat him to extract a confession, but Tibbs reveals Oberst is left-handed and has witnesses to confirm his alibi. Frustrated by the ineptitude of the local police but impressed by Tibbs, Colbert's widow threatens to halt construction of the factory unless Tibbs leads the investigation, so the town's leading citizens are forced to comply with her demand.
Tibbs initially suspects the murderer is plantation owner Endicott, a genteel racist and one of the town's most powerful citizens, who publicly opposed Colbert's new factory. When Tibbs interrogates him, Endicott slaps him in the face. Tibbs slaps him back, so Endicott sends a gang of thugs after him. Gillespie rescues him and tells him to leave town to save himself, but Tibbs is convinced he can solve the case.
Tibbs asks Wood to re-trace his patrol car route during the night of the murder; Gillespie joins them. After questioning why Wood partially detours from his patrol route, Tibbs finds Wood enjoys passing by Delores' house, with its bright lights and unobscured windows, to look at the 16-year-old's naked body. Gillespie discovers that Wood made a sizable deposit to his bank account the day after the murder. He arrests Wood, despite Tibbs's protests that he is not the murderer. Tibbs tells Gillespie that the murder was committed at the site of the planned factory, which clears Wood because he could not have driven both his and Colbert's cars back into town.
Purdy, a hostile local, brings his sister Delores to the police station and files statutory rape charges against Wood for impregnating her. When Tibbs insists on being present during Delores' questioning, Purdy, offended that a black man is present during her interrogation, gathers a mob to attack Tibbs.
Tibbs pressures a backstreet abortionist to reveal that she is about to perform an abortion on Delores. When she arrives and sees Tibbs, Delores runs away. Tibbs follows her and confronts her armed boyfriend, Ralph, a cook at a local roadside diner. Purdy's mob also arrives and holds Tibbs at gunpoint.
Tibbs tells Purdy to check Delores' purse for the money Ralph gave her for an abortion, which he got from killing and robbing Colbert. Purdy realizes Tibbs is right when he examines the purse. After Purdy confronts him for impregnating his sister, Ralph shoots Purdy dead. Tibbs grabs Ralph's gun as Gillespie arrives on the scene. Ralph is arrested and confesses to Colbert's murder. After hitchhiking a ride with Colbert and asking him for a job, Ralph attacked him at the construction site of the new factory, intending to rob Colbert but unintentionally killing him.
Tibbs boards a train bound for Philadelphia, as Gillespie, having carried his suitcase, respectfully bids him farewell.