The home of the Canterville Ghost was the ancient Canterville Chase, which has all the accoutrements of a traditional haunted house. Descriptions of the wainscoting, the library panelled in black oak, and the armour in the hallway characterise the setting. Wilde mixes the macabre with comedy, juxtaposing devices from traditional English ghost stories such as creaking floorboards, clanking chains, and ancient prophecies.The story begins when Mr Otis and family move into Canterville Chase, despite warnings from Lord Canterville that the house is haunted. Mr Otis says that he will take the furniture as well as the ghost at valuation. The Otis family includes Mr and Mrs Otis, their eldest son Washington, their daughter Virginia and the Otis twins (often referred to as "Stars and Stripes"). The other characters include the Canterville Ghost, the Duke of Cheshire (who wants to marry Virginia), Mrs Umney (the housekeeper), and Rev. Augustus Dampier. At first, none of the Otis family believe in ghosts, but shortly after they move in, none of them can deny the presence of Sir Simon de Canterville (the Canterville Ghost). The family hears clanking chains, they witness reappearing bloodstains "on the floor just by the fireplace", which are removed every time they appear in various forms (colours). But, humorously, none of these scare the Otis family in the least. In fact, upon hearing the clanking noises in the hallway, Mr Otis promptly gets out of bed and pragmatically offers the ghost Tammany Rising Sun Lubricator to oil his chains.
Despite the ghost's efforts to appear in the most gruesome guises, the family refuses to be frightened, and Sir Simon feels increasingly helpless and humiliated. When Mrs Otis notices a mysterious red mark on the floor, she simply replies that she does "not at all care for blood stains in the sitting room". When Mrs Umney informs Mrs Otis that the blood stain is indeed evidence of the ghost and cannot be removed, Washington Otis, the eldest son, suggests that the stain will be removed with Pinkerton's Champion Stain Remover and Paragon Detergent: a quick fix, like the Tammany Rising Sun Lubricator, and a practical way of dealing with the problem.
Wilde describes Mrs Otis as "a very handsome middle-aged woman" who has been "a celebrated New York belle". Her expression of "modern" American culture surfaces when she immediately resorts to giving the ghost "Doctor Dobell's tincture", thinking he was screaming due to indigestion, at the family's second encounter with the ghost, and when she expresses an interest in joining the Psychical Society to help her understand the ghost. Mrs Otis is given Wilde's highest praise when he says: "Indeed, in many respects, she was quite English..."
The most colourful character in the story is undoubtedly the ghost himself, Sir Simon, who goes about his duties with theatrical panache and flair. He assumes a series of dramatic roles in his failed attempts to impress and terrify the Otises, making it easy to imagine him as a comical character in a stage play. The ghost has the ability to change forms, so he taps into his repertoire of tricks. He takes the role of ghostly apparitions such as a Headless Earl, a Strangled Babe, the Blood-Sucker of Bexley Moor, Suicide's Skeleton, and the Corpse-Snatcher of Chertsey Barn, all having succeeded in horrifying previous castle residents over the centuries. But none of them works with these Americans. Sir Simon schemes, but even as his costumes become increasingly gruesome, his antics do nothing to scare his house guests, and the Otises beat him every time. He falls victim to tripwires, peashooters, butter-slides, and falling buckets of water. In a particularly comical scene, he is frightened by the sight of a "ghost" rigged up by the mischievous twins.
During the course of the story, as narrated from Sir Simon's viewpoint, he tells us the complexity of the ghost's emotions: he sees himself brave, frightening, distressed, scared, and finally, depressed and weak. He exposes his vulnerability during an encounter with Virginia, the Otis's fifteen-year-old daughter. Virginia is different from everyone else in the family, and Sir Simon recognizes this. He tells her that he has not slept in three hundred years and wants desperately to do so. The ghost reveals to Virginia the tragic tale of his wife, Lady Eleanor de Canterville.
Unlike the rest of her family, Virginia does not dismiss the ghost. She takes him seriously: she listens to him and learns an important lesson, as well as the true meaning behind a riddle. Sir Simon de Canterville says that she must weep for him, for he has no tears; she must pray for him, for he has no faith; and then she must accompany him to the angel of death and beg for Death's mercy upon Sir Simon. She does weep for him and pray for him, and she disappears with Sir Simon through the wainscoting and goes with him to the Garden of Death and bids the ghost farewell. Then she reappears at midnight, through a panel in the wall, carrying jewels and news that Sir Simon has passed on to the next world and no longer resides in the house.
Virginia's ability to accept Sir Simon leads to her enlightenment: Sir Simon, she tells her husband several years later, helped her understand "what Life is, what Death signifies, and why Love is stronger than both". The story ends with Virginia marrying the Duke of Cheshire after they both come of age.

Question: When does Virginia marry the Duke of Cheshire? 
Answer: When they are both of age.
Alternative answer: At the end of the story when they both become of age.