The Shining (1980, dir. Stanley Kubrick) is widely considered Jack Nicholson's first true horror film.
Earlier roles had horror-adjacent elements:
The Shining is different: Nicholson's Jack Torrance is a psychological horror protagonist whose descent into madness is the film's engine. The isolation, the supernatural ambiguity, the iconic "Here's Johnny!"—it's a genre-defining performance that redefined what Nicholson could do. No prior role demanded such sustained, terrifying transformation.