Macabre began as a name in a title, and nobody is sure whose name it was.

The phrase is the danse Macabré, the Dance of Death. Etymonline dates it in French to 1376. Wikipedia quotes the line from Jean Le Fèvre's poem Respit de la mort: "Je fis de Macabree la dance." It was an allegory, usually painted as a series. Death, as a skeleton or shrouded corpse, leads people of every rank and age to the grave.

The pictures spread across Europe. Wikipedia lists a 15th-century painting in Lübeck with 24 figures, and one by Bernt Notke in Tallinn. London had a fresco at Old St Paul's.

The English poet John Lydgate brought the dance into English in the early 15th century as the "Macabrees daunce." Etymonline says Lydgate seems to have thought Macabré was the name of a French author.

The most common theory is different. It points to the Medieval Latin Chorea Machabaeorum, "dance of the Maccabees." The Maccabees were Jewish rebels against Antiochus IV, and the Apocrypha tells of seven brothers martyred with their mother. Etymonline suggests vivid accounts of that martyrdom tied the name to Death. The Shorter Oxford suggests it perhaps refers to a miracle play showing the slaughter of the Maccabees.

Other ideas exist, but they are weaker. Wikipedia mentions a link to Macarius the Great, an Egyptian monk, and to the Arabic maqābir, "cemeteries." Both lack solid citations.

The name Maccabee itself is not settled. Etymonline says it is usually linked to the Hebrew word for "hammer." Klein instead suggests a word for "commander."

For centuries the word lived only in that phrase. Etymonline dates the general sense, "characterized by gruesomeness," to 1842 in French and 1889 in English. Composers had taken up the theme too, and Saint-Saëns wrote a Danse macabre for orchestra. The adjective kept the skeletons and lost the dance.