Assonance is used to create rhythm in writing. It has a similar effect to rhyming, so you will often find it in poetry and song lyrics. It can also be used, in both poetry and prose, to create a mood or place emphasis on important words.