Baphomet (/ˈbæfoʊmɛt/; from Medieval Latin Baphometh, Baffometi, Occitan Bafometz) is a term originally used to describe an idol or other deity that the Knights Templar were accused of worshipping and that subsequently was incorporated into disparate occult and mystical traditions. It appeared as a term for a pagan idol in trial transcripts of the Inquisition of the Knights Templar in the early 14th century. The name first came into popular English usage in the 19th century, with debate and speculation on the reasons for the suppression of the Templars.
Since 1856, the name Baphomet has been associated with a "Sabbatic Goat" image drawn by Eliphas Levi which contains binary elements representing the "sum total of the universe" (e.g. male and female, good and evil, etc.).
The name Baphomet appeared in July 1098 in a letter by the crusader Anselm of Ribemont:
Sequenti die aurora apparente, altis vocibus Baphometh invocaverunt; et nos Deum nostrum in cordibus nostris deprecantes, impetum facientes in eos, de muris civitatis omnes expulimus.
As the next day dawned, they called loudly upon Baphometh; and we prayed silently in our hearts to God, then we attacked and forced all of them outside the city walls.
A chronicler of the First Crusade, Raymond of Aguilers, called the mosques Bafumarias. The name Bafometz later appeared around 1195 in the Occitan poems "Senhors, per los nostres peccatz" by the troubadour Gavaudan. Around 1250 a poem bewailing the defeat of the Seventh Crusade by Austorc d'Aorlhac refers to Bafomet.De Bafomet is also the title of one of four surviving chapters of an Occitan translation of Ramon Llull's earliest known work, the Libre de la doctrina pueril, "book on the instruction of children".