Alliteration is a literary device that involves the repetition of the same initial consonant sound in a series of words or phrases. It is often used in poetry and prose to create rhythm, enhance mood, or emphasize particular ideas. For example, in the phrase "Peter Piper picked a peck of pickled peppers," the repeated "p" sound creates a musical quality. Alliteration can make language more memorable and engaging.