Motets have been written since the Middle Ages. Medieval motets often had very complex rhythms. The tenor often had the tune, which might be a folk tune, and two voices would put quite complicated accompaniments on top. The most famous medieval composer who wrote motets was Guillaume de Machaut (1300-1377)