Semitones are the smallest intervals used in Western music, representing the distance between two adjacent keys on a piano keyboard. They play a crucial role in establishing scales and melodies, as every scale consists of a specific pattern of whole tones and semitones. Understanding semitones is essential for concepts such as melodic transposition, where melodies are shifted up or down by these intervals to create variations or adapt to different keys.