A literary device is a technique used to create a certain effect in writing, such as alliteration, metaphor, and personification. A figure of speech is a phrase or sentence that uses words in a non-literal way to create a vivid image or to make a comparison.