Danceis music specifically composed to facilitate or accompany dance . It can be a complete piece of music or part of a larger musical arrangement. In terms of performance, the main categories are live dance music and recorded dance music. While there is evidence of the combination of dance and music in ancient times (for example, ancient Greek vases sometimes show dancers accompanied by musicians), the oldest Western dance music that we can still reproduce with some degree of certainty is the dances surviving medieval. In the Baroque period, the main dance styles were noble court dances (see Baroque dance). In the classical music era, the minuet was frequently used as the third movement, although in this context it would not accompany any dance. The waltz also emerged later in the classical era. Both remained part of the Romantic music period , which also saw the rise of various other nationalist dance forms such as the barcarolle,mazurka, ecossaise, ballade, and polonaise.
Modern popular dance music initially grew out of the Western ballroom and social dance music of the late 19th century. In the early 20th century, ballroom dancing gained popularity among the working class who attended public ballrooms. Dance music became enormously popular during the 1920s . In the 1930s, called the Swing era, Swing music was the popular dance music in America. In the 1950s, rock and roll became popular dance music. The late 1960s saw the rise of soul and R&B. Dominican and Cuban New Yorkers created the popular salsa dance in the late 1960s, which grew out of the Latino musical genre of salsa. The rise of disco in the early 1970s made dance music popular with the public. In the late 1970s, electronic dance music was developing. This music, made with electronics, is a style of popular music commonly played at nightclubs, radio stations, shows, and raves.