Phonology is the study of the smallest basic units of speech, called phonemes that affect meaning and the way we use those sounds to term words and produce meaning.
For instance, the a sound in fat and the a sound in fate represent two different phonemes in English.