Scottish literature is literature written in Scotland or by Scottish writers. It includes works in English, Scottish Gaelic, Scots, Brythonic, French, Latin, Norn or other languages written within the modern boundaries of Scotland.

The earliest extant literature written in what is now Scotland, was composed in Brythonic speech in the sixth century and has survived as part of Welsh literature. In the following centuries there was literature in Latin, under the influence of the Catholic Church, and in Old English, brought by Anglian settlers. As the state of Alba developed into the kingdom of Scotland from the eighth century, there was a flourishing literary elite who regularly produced texts in both Gaelic and Latin, sharing a common literary culture with Ireland and elsewhere. After the Davidian Revolution of the thirteenth century a flourishing French language culture predominated, while Norse literature was produced from areas of Scandinavian settlement. The first surviving major text in Early Scots literature is the fourteenth-century poet John Barbour's epic Brus, which was followed by a series of vernacular versions of medieval romances. These were joined in the fifteenth century by Scots prose works.

In the early modern era royal patronage supported poetry, prose and drama. James V's court saw works such as Sir David Lindsay of the Mount's The Thrie Estaitis. In the late sixteenth century James VI became patron and member of a circle of Scottish court poets and musicians known as the Castalian Band. When he acceded to the English throne in 1603 many followed him to the new court, but without a centre of royal patronage the tradition of Scots poetry subsided. It was revived after union with England in 1707 by figures including Allan Ramsay and James Macpherson. The latter's Ossian Cycle made him the first Scottish poet to gain an international reputation. He helped inspire Robert Burns, considered by many to be the national poet, and Walter Scott, whose Waverley Novels did much to define Scottish identity in the nineteenth century. Towards the end of the Victorian era a number of Scottish-born authors achieved international reputations, including Robert Louis Stevenson, Arthur Conan Doyle, J. M. Barrie and George MacDonald.

In the twentieth century there was a surge of activity in Scottish literature, known as the Scottish Renaissance. The leading figure, Hugh MacDiarmid, attempted to revive the Scots language as a medium for serious literature. Members of the movement were followed by a new generation of post-war poets including Edwin Morgan, who would be appointed the first Scots Makar by the inaugural Scottish government in 2004. From the 1980s Scottish literature enjoyed another major revival, particularly associated with writers including James Kelman and Irvine Welsh. Scottish poets who emerged in the same period included Carol Ann Duffy, who was named as the first Scot to be UK Poet Laureate in May 2009.

Middle Ages

Early Middle Ages

After the collapse of Roman authority in the early fifth century, four major circles of political and cultural influence emerged in Northern Britain. In the east were the Picts, whose kingdoms eventually stretched from the river Forth to Shetland. In the west were the Gaelic (Goidelic)-speaking people of Dál Riata, who had close links with Ireland, from where they brought with them the name Scots. In the south were the British (Brythonic-speaking) descendants of the peoples of the Roman-influenced kingdoms of "The Old North", the most powerful and longest surviving of which was the Kingdom of Strathclyde. Finally, there were the English or "Angles", Germanic invaders who had overrun much of southern Britain and held the Kingdom of Bernicia (later the northern part of Northumbria), which reached into what are now the Lothians and the Scotiish Borders in the south-east.J. R. Maddicott and D. M. Palliser, eds, The Medieval State: essays presented to James Campbell (London: Continuum, 2000), , p. 48. To these Christianisation, particularly from the sixth century, added Latin as an intellectual and written language. Modern scholarship, based on surviving placenames and historical evidence, indicates that the Picts spoke a Brythonic language, but none of their literature seems to have survived into the modern era.J. T. Koch, Celtic Culture: a Historical Encyclopedia (ABC-CLIO, 2006), , p. 305. However, there is surviving literature from what would become Scotland in Brythonic, Gaelic, Latin and Old English.

Much of the earliest Welsh literature was actually composed in or near the country we now call Scotland, in the Brythonic speech, from which Welsh would be derived, which was not then confined to Wales and Cornwall, although it was only written down in Wales much later. These include The Gododdin, considered the earliest surviving verse from Scotland, which is attributed to the bard Aneirin, said to have been resident in Brythonic kingdom of Gododdin in the sixth century. It is a series of elegies to the men of the Gododdin killed fighting at the Battle of Catraeth around 600 AD. Similarly, the Battle of Gwen Ystrad is attributed to Taliesin, traditionally thought to be a bard at the court of Rheged in roughly the same period.R. T. Lambdin and L. C. Lambdin, Encyclopedia of Medieval Literature (London: Greenwood, 2000), , p. 508.

There are religious works in Gaelic including the Elegy for St Columba by Dallan Forgaill, c. 597 and "In Praise of St Columba" by Beccan mac Luigdech of Rum, c. 677.J. T. Koch, Celtic Culture: a Historical Encyclopedia (ABC-CLIO, 2006), , p. 999. In Latin they include a "Prayer for Protection" (attributed to St Mugint), c. mid-sixth century and Altus Prosator ("The High Creator", attributed to St Columba), c. 597.I. Brown, T. Owen Clancy, M. Pittock, S. Manning, eds, The Edinburgh History of Scottish Literature: From Columba to the Union, until 1707 (Edinburgh: Edinburgh University Press, 2007), , p. 94. What is arguably the most important medieval work written in Scotland, the Vita Columbae, by Adomnán, abbot of Iona (627/8–704), was also written in Latin.C. Gross, The Sources and Literature of English History from the Earliest Times to about 1485 (Elibron Classics Series, 1999), , p. 217. The next most important piece of Scottish hagiography, the verse Life of St. Ninian, was written in Latin in Whithorn in the eighth century.T. O. Clancy, "Scottish literature before Scottish literature", in G. Carruthers and L. McIlvanney, eds, The Cambridge Companion to Scottish Literature (Cambridge Cambridge University Press, 2012), , p. 19.

In Old English there is The Dream of the Rood, from which lines are found on the Ruthwell Cross, making it the only surviving fragment of Northumbrian Old English from early Medieval Scotland.E. M. Treharne, Old and Middle English c.890-c.1400: an Anthology (Wiley-Blackwell, 2004), , p. 108. It has also been suggested on the basis of ornithological references that the poem The Seafarer was composed somewhere near the Bass Rock in East Lothian.T. O. Clancy, "Scottish literature before Scottish literature", in G. Carruthers and L. McIlvanney, eds, The Cambridge Companion to Scottish Literature (Cambridge Cambridge University Press, 2012), , p. 16.

High Middle Ages

Beginning in the later eighth century, Viking raids and invasions may have forced a merger of the Gaelic and Pictish crowns that culminated in the rise of Cínaed mac Ailpín (Kenneth MacAlpin) in the 840s, which brought to power the House of Alpin and the creation of the Kingdom of Alba.B. Yorke, The Conversion of Britain: Religion, Politics and Society in Britain c.600–800 (Pearson Education, 2006), , p. 54. Historical sources, as well as place name evidence, indicate the ways in which the Pictish language in the north and Cumbric languages in the south were overlaid and replaced by Gaelic, Old English and later Norse.W. O. Frazer and A. Tyrrell, Social Identity in Early Medieval Britain (London: Continuum, 2000), , p. 238. The Kingdom of Alba was overwhelmingly an oral society dominated by Gaelic culture. Our fuller sources for Ireland of the same period suggest that there would have been filidh, who acted as poets, musicians and historians, often attached to the court of a lord or king, and passed on their knowledge and culture in Gaelic to the next generation.R. A. Houston, Scottish Literacy and the Scottish Identity: Illiteracy and Society in Scotland and Northern England, 1600–1800 (Cambridge: Cambridge University Press, 2002), , p. 76.

From the eleventh century French, Flemish and particularly English became the main languages of Scottish burghs, most of which were located in the south and east.K. J. Stringer, "Reform Monasticism and Celtic Scotland", in E. J. Cowan and R. A. McDonald, eds, Alba: Celtic Scotland in the Middle Ages (East Lothian: Tuckwell Press, 2000), , p. 133. At least from the accession of David I (r. 1124–53), as part of a Davidian Revolution that introduced French culture and political systems, Gaelic ceased to be the main language of the royal court and was probably replaced by French. After this "gallicisation" of the Scottish court, a less highly regarded order of bards took over the functions of the filidh and they would continue to act in a similar role in the Highlands and Islands into the eighteenth century. They often trained in bardic schools, of which a few, like the one run by the MacMhuirich dynasty, who were bards to the Lord of the Isles,K. M. Brown, Noble Society in Scotland: Wealth, Family and Culture from the Reformation to the Revolutions (Edinburgh: Edinburgh University Press, 2004), , p. 220. existed in Scotland and a larger number in Ireland, until they were suppressed from the seventeenth century. Members of bardic schools were trained in the complex rules and forms of Gaelic poetry. Much of their work was never written down and what survives was only recorded from the sixteenth century.R. Crawford, Scotland's Books: A History of Scottish Literature (Oxford: Oxford University Press, 2009), .

It is possible that more Middle Irish literature was written in medieval Scotland than is often thought, but has not survived because the Gaelic literary establishment of eastern Scotland died out before the fourteenth century. Thomas Owen Clancy has argued that the Lebor Bretnach, the so-called "Irish Nennius", was written in Scotland, and probably at the monastery in Abernethy, but this text survives only from manuscripts preserved in Ireland.T. O. Clancy, "Scotland, the 'Nennian' recension of the Historia Brittonum, and the Lebor Bretnach", in S. Taylor, ed., Kings, Clerics and Chronicles in Scotland, 500–1297 (Dublin/Portland, 2000), , pp. 87–107. Other literary work that has survived includes that of the prolific poet Gille Brighde Albanach. About 1218, Gille Brighde wrote a poem—Heading for Damietta—on his experiences of the Fifth Crusade.T. O. Clancy and G. Márkus, The Triumph Tree: Scotland's Earliest Poetry, 550–1350 (Edinburgh: Canongate Books, 1998), , pp. 247–283.