Consonance refers to the repetition of consonant sounds in close proximity within a sentence or phrase, creating a harmonious effect that enhances the rhythm and mood of the text. It can occur at the beginning, middle, or end of words and is often used to create a lyrical quality in poetry and drama. This technique can evoke emotions and emphasize themes by linking sounds to meanings in various forms of writing.