He wrote the novel in 1968, the same year the film adaptation, directed by Stanley Kubrick, was released.