Alliteration involves the repetition of the same consonant sound at the beginning of words, such as in "Peter Piper picked a peck of pickled peppers," creating rhythm and mood.