Occasional music is music that is, or was, written for a special occasion, such as a wedding, a consecration of a new cathedral, or a coronation of a king. There is a long history of occasional music in Western music, from at least the beginning of the fifteenth century, and some of the greatest composers, including Bach, Haydn and Purcell, contributed to this genre.