Scottish literature in the nineteenth century includes all written and published works in Scotland or by Scottish writers in the period. It includes literature written in English, Scottish Gaelic and Scots in forms including poetry, novels, drama and the short story.

The most successful literary figure of the era, Walter Scott, began his literary career as a poet and also collected and published Scottish ballads. Scottish poetry is often seen as entering a period of decline in the nineteenth century, with Scots language poetry criticised for its use of parochial dialect and English poetry for its lack of Scottishness. Successful poets included William Thom, Lady Margaret Maclean Clephane Compton Northampton and Thomas Campbell. Among the most influential poets of the later nineteenth were James Thomson and John Davidson. The Highland Clearances and widespread emigration weakened Gaelic language and culture and had a profound impact on the nature of Gaelic poetry. Particularly significant was the work of Uilleam Mac Dhun Lèibhe, Seonaidh Phàdraig Iarsiadair and Màiri Mhòr nan Óran.

There was a tradition of moral and domestic fiction in the early nineteenth century that included the work of Elizabeth Hamilton, Mary Brunton and Christian Johnstone. The outstanding literary figure of the early nineteenth century was Walter Scott, whose Waverley is often called the first historical novel. He had a major worldwide influence. His success led to a publishing boom in Scotland. Major figures that benefited included James Hogg, John Galt, John Gibson Lockhart, John Wilson and Susan Ferrier. In the mid-nineteenth century major literary figures that contributed to the development of the novel included David Macbeth Moir, John Stuart Blackie, William Edmondstoune Aytoun and Margaret Oliphant. In the late nineteenth century, a number of Scottish-born authors achieved international reputations, including Robert Louis Stevenson and Arthur Conan Doyle, whose Sherlock Holmes stories helped found the tradition of detective fiction. In the last two decades of the century the "kailyard school" (cabbage patch) depicted Scotland in a rural and nostalgic fashion, often seen as a "failure of nerve" in dealing with the rapid changes that had swept across Scotland in the industrial revolution. Figures associated with the movement include Ian Maclaren, S. R. Crockett and J. M. Barrie, best known for his creation of Peter Pan, which helped develop the genre of fantasy, as did the work of George MacDonald.

Scottish "national drama" emerged in the early 1800s, as plays with specifically Scottish themes began to dominate the Scottish stage. Scott was keenly interested in drama, writing five plays. Also important was the work of Joanna Baillie. These highly popular plays saw the social range and size of the audience for theatre expand and helped shape theatre-going practices in Scotland for the rest of the century. Despite these successes, provincialism began to set in to Scottish theatre. A number of figures that could have made a major contribution to Scottish drama moved south to London. Many poems and novels were original serialised in periodicals, which included The Edinburgh Review and Blackwood's Magazine. They also played a major role in the development of the short story.

Poetry

Scottish poetry is often seen as entering a period of decline in the nineteenth century, with Scots language poetry criticised for its use of parochial dialect and English poetry for its lack of Scottishness.L. Mandell, "Nineteenth-century Scottish poetry", in I. Brown, ed., The Edinburgh History of Scottish Literature: Enlightenment, Britain and empire (1707–1918) (Edinburgh: Edinburgh University Press, 2007), , pp. 301–07. Conservative and anti-radical Burns clubs sprang up around Scotland, filled with members who praised a sanitised version of Robert Burns' life and work and poets who fixated on the "Burns stanza" as a form. William Tennant's (1784–1848) "Anster Fair" (1812) produced a more respectable version of folk revels.G. Carruthers, Scottish Literature (Edinburgh: Edinburgh University Press, 2009), , pp. 58–9. Scottish poetry has been seen as descending into infantalism as exemplified by the highly popular Whistle Binkie anthologies, which appeared 1830–90 and which notoriously included in one volume "Wee Willie Winkie" by William Miler (1810–72). This tendency has been seen as leading late nineteenth-century Scottish poetry into the sentimental parochialism of the Kailyard school.M. Lindsay and L. Duncan, The Edinburgh Book of Twentieth-century Scottish Poetry (Edinburgh: Edinburgh University Press, 2005), , pp. xxxiv–xxxv.

However, Scotland continued to produce talented and successful poets. Walter Scott's (1771–1832) literary career began with ballad collecting and poetry, with highly successful works such as the narrative poem The Lady of the Lake (1810), which made him the most popular poet until his place was taken by Byron and he moved towards the writing of prose.A. Calder, Byron and Scotland: Radical Or Dandy? (Rowman & Littlefield, 1989), , p. 112. Poets from the lower social orders included the weaver-poet William Thom (1799–1848), whose his "A chieftain unknown to the Queen" (1843) combined simple Scots language with a social critique of Queen Victoria's visit to Scotland. From the other end of the social scale Lady Margaret Maclean Clephane Compton Northampton (d. 1830), translated Jacobite verse from the Gaelic and poems by Petrarch and Goethe as well as producing her own original work. William Edmondstoune Aytoun (1813–65), eventually appointed Professor of belles lettres at the University of Edinburgh, he is best known for The lays of the Scottish Cavaliers and made use of the ballad form in his poems, such as Bothwell. Among the most successful Scottish poets was the Glasgow-born Thomas Campbell (1777–1844), whose produced patriotic British songs, among them was "Ye Mariners of England", a reworking of "Rule Britannia!", and sentimental but powerful epics on contemporary events, including Gertrude of Wyoming. His works were extensively reprinted in the period 1800–60.

Among the most influential poets of the later nineteenth century who rejected the limitations of the Kailyard School were James Thomson (1834–82), whose "City of Dreadful Night" broke many of the conventions of nineteenth-century poetry and John Davidson (1857–1909), whose work, including "The Runable Stag" and "Thirty Bob a Week" were much anthologised, would have a major impact on modernist poets including Hugh MacDiarmid, Wallace Stevens and T. S. Eliot.

The Highland Clearances and widespread emigration significantly weakened Gaelic language and culture and had a profound impact on the nature of Gaelic poetry. The best poetry in this vein contained a strong element of protest, including Uilleam Mac Dhun Lèibhe's (William Livingstone, 1808–70) objection to the Islay clearances in "Fios Thun a' Bhard" ("A Message for the Poet") and Seonaidh Phàdraig Iarsiadair's (John Smith, 1848–81) long emotional condemnation of those responsible for the clearances Spiord a' Charthannais. The best known Gaelic poet of the era was Màiri Mhòr nan Óran (Mary MacPherson, 1821–98), whose verse was criticised for a lack of intellectual weight, but which embodies the spirit of the land agitation of the 1870s and 1880s and whose evocation of place and mood has made her among the most enduring Gaelic poets.J. MacDonald, "Gaelic literature", in M. Lynch, ed., The Oxford Companion to Scottish History (Oxford: Oxford University Press, 2001), , pp. 255–7.

Novel

As elsewhere in the British Isles there was a tradition of moral and domestic fiction in the early nineteenth century. It did not flourish to the same extent in Scotland, but did produce a number of significant publications. These included Elizabeth Hamilton's (1756?–1816), Cottagers of Glenburnie (1808), Mary Brunton's (1778–1818) Discipline (1814) and Christian Johnstone's Clan-Albin (1815).I. Duncan, "Scott and the historical novel: a Scottish rise of the novel", in G. Carruthers and L. McIlvanney, eds, The Cambridge Companion to Scottish Literature (Cambridge Cambridge University Press, 2012), , p. 105.

Walter Scott's first prose work, Waverley in 1814, is often called the first historical novel, and launched a highly successful career as a novelist.K. S. Whetter, Understanding Genre and Medieval Romance (Aldershot: Ashgate, 2008), , p. 28. His early work dealt with Scottish history, particularly of the Highlands and Borders and included Rob Roy (1817) and The Heart of Midlothian (1818). Beginning with Ivanhoe (1820) he turned to English history and began the European vogue for his work.G. L. Barnett, ed., Nineteenth-Century British Novelists on the Novel (Ardent Media, 1971), p. 29. He did more than any other figure to define and popularise Scottish cultural identity in the nineteenth century.N. Davidson, The Origins of Scottish Nationhood (Pluto Press, 2008), , p. 136. He is considered the first novelist writing in English to enjoy an international career in his own lifetime,R. H. Hutton, Sir Walter Scott (Cambridge: Cambridge University Press, 2011), , p. 1. having a major influence on novelists in Italy, France, Russia and the US as well as Great Britain.

Scott's success led to a publishing boom that benefitted his imitators and rivals. Scottish publishing increased threefold as a proportion of all publishing in Great Britain, reaching a peak of 15 per cent in 1822–25. The major figures that benefited from this boom included James Hogg (1770–1835), whose best known work is The Private Memoirs and Confessions of a Justified Sinner (1824), which dealt with the themes of Presbyterian religion and Satanic possession, evoking the landscape of Edinburgh and its surrounding environment.A. Maunder, FOF Companion to the British Short Story (Infobase Publishing, 2007), , p. 374. John Galt's (1779–1839) most famous work was Annals of the Parish (1821), given in the form of a diary kept by a rural minister over a fifty-year period and allowing Galt to make observations about the changes in Scottish society.I. Campbell, "Culture: Enlightenment (1660–1843): the novel", in M. Lynch, ed., The Oxford Companion to Scottish History (Oxford: Oxford University Press, 2001), , pp. 138–40. Walter Scott's son-in-law John Gibson Lockhart (1794–1854), is most noted for his Life of Adam Blair (1822), which focuses on the contest between desire and guilt. The lawyer and critic John Wilson, as Christopher North, published novels including Lights and Shadows of Scottish Life (1822), The Trials of Margaret Lyndsay (1823) and The Foresters (1825), which investigated individual psychology.G. Kelly, English Fiction of the Romantic Period, 1789–1830 (London: Longman, 1989), , p. 320. The only major female novelist to emerge in the aftermath of Scott's success was Susan Ferrier (1782–1854), whose novels Marriage (1818), The Inheritance (1824) and Destiny (1831), continued the domestic tradition.

In the mid-nineteenth century major literary figures that contributed to the development of the novel included David Macbeth Moir (1798–1851), John Stuart Blackie (1809–95) and William Edmondstoune Aytoun (1813–65). Margaret Oliphant (1828–97) produced over a hundred novels, many of them historical or studies of manners set in Scotland and England, including The Minister's Wife (1886) and Kirsteen (1890). Her series the Chronicles of Carlingford has been compared with the best work of Anthony Trollope.A. C. Cheyne, "Culture: Age of Industry (1843–1914), general", in M. Lynch, ed., The Oxford Companion to Scottish History (Oxford: Oxford University Press, 2001), , pp. 143–6.