The Canterville Ghost is a ghost story.
Ghost stories belong to the genre called horror literature, whose purpose is to scare the reader with situations that cause horror or fear. The most common technique is suspense, the slow insinuating of a doubt or of a frightening revelation, which keeps the reader interested.
This story can be defined an inverted ghost story, because a lot of elements are different from the traditional ones. The main difference is the fact that Mr Otis is not scared by the ghost, while usually people should be. Moreover, the Ghost itself is frightened by the Otis twins.
There is also comic relief bordering on farce, including buckets of water balanced on half-open doors. But the story has a dark centre. The crime and retribution which led to the haunting is ghastly, and this is really not a comedy at all, but a tale of redemption through the power of love. The innocent girl of the family, appropriately called Virginia, prays for the ghost and endures terrifying if unnamed experiences to release the ghost.
Also, The Canterville Ghost is both a parody of the traditional ghost story and a satire of the American way of life. Wilde obviously intends to satirize American materialism, but he pokes fun at English traditional culture as well.
American vs. British society: “The Canterville Ghost” is a study in contrasts. Wilde takes an American family, places them in a British setting, then, through a series of mishaps, pits one culture against the other. He creates stereotypical characters that represent both England and the United States, and he presents each of these characters as comical figures, satirizing both the unrefined tastes of Americans and the determination of the British to guard their traditions. Sir Simon is not a symbol of England, as perhaps Mrs. Umney is, but rather a paragon of British culture. In this sense, he stands in perfect contrast to the Otises. Sir Simon misunderstands the Otises just as they misunderstand him, and, by pitting them against each other, Wilde clearly wishes to emphasize the culture clash between England and the United States.