Romanticism was an artistic, literary, and intellectual movement that originated in Europe toward the end of the 18th century. Various dates are given for the Romantic period but here the publishing of William Wordsworth's Lyrical Ballads in 1798 is taken as the beginning, and the crowning of Queen Victoria in 1837 as its end. Romanticism arrived later in other parts of the English-speaking world, such as America.
The Romantic period was one of major social change in England, because of the depopulation of the countryside and the rapid development of overcrowded industrial cities, that took place in the period roughly between 1750 and 1850. The movement of so many people in England was the result of two forces: the Agricultural Revolution, that involved the Enclosure of the land, drove workers off the land, and the Industrial Revolution which provided them employment, "in the factories and mills, operated by machines driven by steam-power". Indeed, Romanticism may be seen in part as a reaction to the Industrial Revolution, though it was also a revolt against aristocratic social and political norms of the Age of Enlightenment, as well a reaction against the scientific rationalization of nature. The French Revolution was an especially important influence on the political thinking of many at this time.
The Romantic movement in English literature of the early 19th century has its roots in 18th-century poetry, the Gothic novel and the novel of sensibility. This includes the graveyard poets, who were a number of pre-Romantic English poets, writing in the 1740s and later, whose works are characterised by their gloomy meditations on mortality, "skulls and coffins, epitaphs and worms" in the context of the graveyard. To this was added, by later practitioners, a feeling for the 'sublime' and uncanny, and an interest in ancient English poetic forms and folk poetry. They are often considered precursors of the Gothic genre. The poets include Thomas Gray (1716–71), whose Elegy Written in a Country Churchyard (1751) is "the best known product of this kind of sensibility";William Cowper (1731–1800); Christopher Smart (1722–71); Thomas Chatterton (1752–70); Robert Blair (1699–1746), author of The Grave (1743), "which celebrates the horror of death"; and Edward Young (1683–1765), whose The Complaint, or Night Thoughts on Life, Death and Immortality (1742–45) is another "noted example of the graveyard genre". Other precursors of Romanticism are the poets James Thomson (1700–48) and James Macpherson (1736–96).