Allan Cunningham (7 December 1784 – 30 October 1842) was a Scottish poet and author.
He was born at Keir, near Dalswinton, Dumfries and Galloway, and first worked as a stonemason's apprentice. His father was a neighbour of Robert Burns at Ellisland, and Allan with his brother James visited James Hogg, the "Ettrick shepherd", who became a friend to both. Cunningham's other brothers were the naval surgeon Peter Miller Cunningham (1789–1864) and the poet, Thomas Mounsey Cunningham (1776–1834).
Cunningham was apprenticed to a stonemason, but gave his leisure to reading and writing imitations of old Scottish ballads. In 1809 he collected old ballads for Robert Hartley Cromek's Remains of Nithsdale and Galloway Song; he sent in, however, poems of his own, which the editor inserted, even though he may have suspected their real authorship. It gained for him the friendship of Walter Scott and Hogg.
In 1810 Cunningham went to London, where he worked as a parliamentary reporter and journalist till 1814, when he became clerk of the works in the studio of the sculptor, Francis Chantrey, a post he kept until Chantrey's death in 1841.
Cunningham contributed some songs to Eugenius Roche's Literary Recreations in 1807. He wrote, three novels, a life of Sir David Wilkie, and Lives of Eminent British Painters, Sculptors, and Architects (1829–33), that include biographies of William Hogarth, Sir Joshua Reynolds, Thomas Gainsborough and William Blake. Besides these he wrote many songs A Wet Sheet and a Flowing Sea is a sea-song; and many other of Cunningham's songs became popular. He also brought out an edition of Robert Burns' Works.