Inspector Rebus span a broad spectrum of Scotland, including council estates, tenements, business districts, nightclubs, prisons, dying mining towns, secluded villages and desolate hillsides, as well as the better-known pubs and streets of Edinburgh. Some of these locations are fictional, although they may be based on real places. For example, the Pilmuir estate is a conflation of the two real Edinburgh locations Pilton and Muirhouse. Other locations, such as the Oxford Bar, Arden Street, and St Leonards police station, are real. Frequent references to real places, or local politics firmly ground the Rebus series in the real world. Another strong feature of
Ian Rankin Scottish traditions of Robert Louis Stevenson and even Muriel Spark. He was disconcerted by their classification as genre fiction. The Scottish novelist Allan Massie, who tutored Rankin while Massie was writer-in-residence at the University of Edinburgh, reassured him by saying, "Do you think John Buchan ever worried about whether he was writing literature or not?" Rankin's Inspector Rebus novels are set mainly in Edinburgh. They are considered major contributions to the tartan noir genre. Ten of the novels were adapted as a television series on ITV, starring John Hannah as Rebus in series 1 and 2 and Ken Stott in