For example, in the line "The sun shines brightly on the sea," the repeated short "i" sound in "shines" and "brightly" creates assonance.
It's important to note that the vowel sounds don't have to be exactly the same, just similar. The key is that they create a pleasing, musical effect.