An epigram is a brief, interesting, memorable, and sometimes surprising or satirical statement. The word is derived from the Greek: ἐπίγραμμα epigramma 'inscription' from ἐπιγράφειν epigraphein 'to write on, to inscribe',[1] and the literary device has been employed for over two millennia.

The presence of wit or sarcasm tends to distinguish non-poetic epigrams from aphorisms and adages, which tend to lack those qualities.

The Greek tradition of epigrams began as poems inscribed on votive offerings at sanctuaries – including statues of athletes – and on funerary monuments, for example "Go tell it to the Spartans, passersby...". These original epigrams did the same job as a short prose text might have done, but in verse. Epigram became a literary genre in the Hellenistic period, probably developing out of scholarly collections of inscriptional epigrams.

Though modern epigrams are usually thought of as very short, Greek literary epigram was not always as short as later examples, and the divide between "epigram" and "elegy" is sometimes indistinct (they share a characteristic metre, elegiac couplets). In the classical period, the clear distinction between them was that epigrams were inscribed and meant to be read, while elegies were recited and meant to be heard. Some elegies could be quite short, but only public epigrams were longer than ten lines. All the same, the origin of epigram in inscription exerted a residual pressure to keep things concise, even when they were recited in Hellenistic times. Many of the characteristic types of literary epigram look back to inscriptional contexts, particularly funerary epigram, which in the Hellenistic era becomes a literary exercise. Many "sympotic" epigrams combine sympotic and funerary elements – they tell their readers (or listeners) to drink and live for today because life is short. Generally, any theme found in classical elegies could be and were adapted for later literary epigrams.

Hellenistic epigrams are also thought of as having a "point" – that is, the poem ends in a punchline or satirical twist. By no means do all Greek epigrams behave this way; many are simply descriptive, but Meleager of Gadara and Philippus of Thessalonica, the first comprehensive anthologists, preferred the short and witty epigram. Since their collections helped form knowledge of the genre in Rome and then later throughout Europe, Epigram came to be associated with 'point,' especially because the European epigram tradition takes the Latin poet Martial as its principal model; he copied and adapted Greek models (particularly the contemporary poets Lucillius and Nicarchus) selectively and in the process redefined the genre, aligning it with the indigenous Roman tradition of 'satura', hexameter satire, as practised by (among others) his contemporary Juvenal. Greek epigram was actually much more diverse, as the Milan Papyrus now indicates.

A major source for Greek literary epigram is the Greek Anthology, a compilation from the 10th century AD based on older collections, including those of Meleager and Philippus. It contains epigrams ranging from the Hellenistic period through the Imperial period and Late Antiquity into the compiler's own Byzantine era – a thousand years of short elegiac texts on every topic under the sun. The Anthology includes one book of Christian epigrams as well as one book of erotic and amorous homosexual epigrams called the Μοῦσα Παιδικἠ (Mousa Paidike, "The Boyish Muse").

Roman epigrams owe much to their Greek predecessors and contemporaries. Roman epigrams, however, were often more satirical than Greek ones, and at times used obscene language for effect. Latin epigrams could be composed as inscriptions or graffiti, such as this one from Pompeii, which exists in several versions and seems from its inexact meter to have been composed by a less educated person. Its content makes it clear how popular such poems were:

However, in the literary world, epigrams were most often gifts to patrons or entertaining verse to be published, not inscriptions. Many Roman writers seem to have composed epigrams, including Domitius Marsus, whose collection Cicuta (now lost) was named after the poisonous plant Cicuta for its biting wit, and Lucan, more famous for his epic Pharsalia. Authors whose epigrams survive include Catullus, who wrote both invectives and love epigrams – his poem 85 is one of the latter.

Martial, however, is considered to be the master of the Latin epigram.[2][3][4] His technique relies heavily on the satirical poem with a joke in the last line, thus drawing him closer to the modern idea of epigram as a genre. Here he defines his genre against a (probably fictional) critic (in the latter half of 2.77):

Learn what you don't know: one work of (Domitius) Marsus or learned Pedo

Poets known for their epigrams whose work has been lost include Cornificia.

In early English literature the short couplet poem was dominated by the poetic epigram and proverb, especially in the translations of the Bible and the Greek and Roman poets. Since 1600, two successive lines of verse that rhyme with each other, known as a couplet featured as a part of the longer sonnet form, most notably in William Shakespeare's sonnets. Sonnet 76 is an excellent example. The two line poetic form as a closed couplet was also used by William Blake in his poem Auguries of Innocence, and also by Byron in his poem Don Juan, by John Gay in his fables and by Alexander Pope in his An Essay on Man.

The first work of English literature penned in North America was Robert Hayman's Quodlibets, Lately Come Over from New Britaniola, Old Newfoundland, which is a collection of over 300 epigrams, many of which do not conform to the two-line rule or trend. While the collection was written between 1618 and 1628 in what is now Harbour Grace, Newfoundland, it was published shortly after his return to Britain.[5]

In Victorian times the epigram couplet was often used by the prolific American poet Emily Dickinson. Her poem No. 1534 is a typical example of her eleven poetic epigrams. The novelist George Eliot also included couplets throughout her writings. Her best example is in her sequenced sonnet poem entitled Brother and Sister[6] in which each of the eleven sequenced sonnet ends with a couplet. In her sonnets, the preceding lead-in-line, to the couplet ending of each, could be thought of as a title for the couplet, as is shown in Sonnet VIII of the sequence.

During the early 20th century, the rhymed epigram couplet form developed into a fixed verse image form, with an integral title as the third line. Adelaide Crapsey codified the couplet form into a two line rhymed verse of ten syllables per line with her image couplet poem On Seeing Weather-Beaten Trees[7] first published in 1915.

By the 1930s, the five-line cinquain verse form became widely known in the poetry of the Scottish poet William Soutar. These were originally labelled epigrams but later identified as image cinquains in the style of Adelaide Crapsey. J. V. Cunningham was also a noted writer of epigrams, (a medium suited to a 'short-breathed' person).[8]