Phonology is concerned in the ways in which speech sounds from systems and patters in human language. Despite the infinite variations which occur when we speak, all speakers of a language agree that a certain utterances are the same and others are different.
Phonological knowledge permits a speaker to produce sounds which form meaningful utterances, to recognize a foreign accent, to make up new words, to know what is and what is not a sound in ones language, etc.