What is the difference between rhyme and rhythm in English poetry?

Rhyme is the similarity of ending sounds between words.

Rhythm is the beat pattern of a speech or a line of poetry.

The final sound between rhyming words is similar to that between words.

The rhythmic pattern of a language or poem.