Hardy began work on what would become the first of his
Wessex novels
, Under the Greenwood Tree in 1871, the genesis of the novel being a conflict between his grandfather's 'string choir' of viols and voices in
Stinsford church, and a new vicar who was determined to replace the choir with an up-to-date organ. He modelled Mellstock on
Stinsford, and the Dewys' house on his own family home in the hamlet of Upper Bockhampton (now Higher Bockhampton). Although the characters were not directly modelled on members of his family, he did make use of the fact that his sister Mary had trained as a schoolteacher. Writing forty years later, Hardy recalled "This story of the Mellstock Quire and its old established west-gallery musicians ... is intended to be a fairly true picture, at first hand, of the personages, ways, and customs which were common among such orchestral bodies in the villages of fifty or sixty years ago." The book was originally to be called
The Mellstock Quire, but during the summer of 1871 Hardy added significant additional material, de-emphasising the tribulations of the choir and focusing the plot on the love story between Dick and Fancy. With the new structure came a new title,
Under the Greenwood Tree, taken from a song in Shakespeare's
As You Like It (Act II, Scene V), and a subtitle,
A Rural Painting of the Dutch School. Having received a discouraging reply from
Macmillan, to whom he offered the manuscript in 1871, Hardy accepted an offer from the ultimate publisher, Tinsley, of £30 for the copyright. Later, when Hardy had become more established, he attempted to retrieve the copyright but declined to pay Tinsley's quoted price of £300; the copyright was to remain with the publisher and his successors until after Hardy's death. == Publication ==