Phonetics is the study of speech sounds and their production, transmission, and perception. It examines how sounds are made, their physical properties, and how they are perceived. Phonology studies the sound systems within languages and the abstract patterns and relationships between sounds. The main difference is that phonetics looks at actual speech sounds, while phonology examines the functional and contrastive sound units (phonemes) in a language and how they are organized. The aim of studying phonology is to understand the phoneme inventory of a language and how phonemes pattern and relate to each other through phonological processes.