Phonology can be defined as the study of sound patterns.
This video clearly demonstrates the difference between the two linguistic components Phonetics and Phonology, which might be confusing for some learners.