Alliteration is a literary device characterized by the repetition of the same initial consonant sounds in a sequence of words or syllables. It is often used in poetry and prose to create rhythm, enhance mood, or emphasize particular themes or ideas. For example, phrases like "Peter Piper picked a peck of pickled peppers" illustrate alliteration through the repeated "p" sound. This technique can add musicality and memorability to language.