William Edmonstoune Aytoun (June 21, 1813 - 1865) was a Scottish poet, humorist and writer.

Born at Edinburgh, he was the only son of Roger Aytoun, a writer to the signet, and was related to Sir Robert Aytoun. From his mother, a woman of marked originality of character and culture, he owed his early tastes in literature, his political sympathies, his love for ballad poetry, and his admiration for the House of Stuart. At the age of eleven he was sent to the Edinburgh Academy, and from there to the University of Edinburgh.

In 1833 he spent a few months in London studying law; but in September of that year he went to study German at Aschaffenburg, where he remained till April 1834. He then resumed his legal studies in his father's chambers, was admitted a writer to the signet in 1835, and five years later was called to the Scottish bar. By his own confession, though he followed the law, he never could overtake it. His first publication, a volume entitled Poland, Homer, and other Poems, in which be gave expression to his eager interest in the state of Poland had appeared in 1832.

While in Germany he made a translation in blank verse of the first part of Faust; but, forestalled by other translations, it was never published. In 1836 he made his earliest contributions to Blackwood's Magazine, in translations from Uhland; and from 1839 till his death he remained on the staff of Blackwood's. In about 1841 he became acquainted with Theodore Martin, and in association with him wrote a series of humorous articles on the tastes and follies of the day, in which were interspersed the verses which afterwards became popular as the Ben Gaultier Ballads (1855).

His reputation is a poet chiefly rests on Lays of the Scottish Cavaliers (1848). In 1845 he was appointed professor of rhetoric and belles lettrers at Edinburgh University. His lectures attracted large numbers of students. His services in support of the Tory party, especially during the Anti-Corn-Law struggle, received official recognition on his appointment (1852) as sheriff of Orkney and Zetland.

Reference