An acrostic is a poem or other word composition in which the first letter (or syllable, or word) of each new line (or paragraph, or other recurring feature in the text) spells out a word, message or the alphabet. The term comes from the French acrostiche from post-classical Latin acrostichis, from Koine Greek ἀκροστιχίς, from Ancient Greek ἄκρος "highest, topmost" and στίχος "verse". As a form of constrained writing, an acrostic can be used as a mnemonic device to aid memory retrieval. When the last letter of each new line (or other recurring feature) forms a word it is called a telestich; the combination of an acrostic and a telestich in the same composition is called a double acrostic (e.g. the first-century Latin Sator Square).
Acrostics are common in medieval literature, where they usually serve to highlight the name of the poet or his patron, or to make a prayer to a saint. They are most frequent in verse works but can also appear in prose. The Middle High German poet Rudolf von Ems for example opens all his great works with an acrostic of his name, and his world chronicle marks the beginning of each age with an acrostic of the key figure (Moses, David, etc.). In chronicles, acrostics are common in German and English but rare in other languages.
Relatively simple acrostics may merely spell out the letters of the alphabet in order; such an acrostic may be called an 'alphabetical acrostic' or abecedarius. These acrostics occur in the first four of the five chapters that make up the Book of Lamentations, in the praise of the good wife in Proverbs 31:10-31, and in Psalms 9-10, 25, 34, 37, 111, 112, 119 and 145 of the Hebrew Bible.
Notable among the acrostic Psalms is the long Psalm 119, which typically is printed in subsections named after the 22 letters of the Hebrew alphabet, each section consisting of 8 verses, each of which begins with the same letter of the alphabet and the entire psalm consisting of 22 x 8 = 176 verses; and Psalm 145, which is recited three times a day in the Jewish services.