Music theory's origins can be traced back to ancient civilizations, such as the Greeks, who developed a system of scales and modes. In the Middle Ages, music theory was further refined, with the introduction of musical notation.