An exorcism is, by its name, a legal procedure. The word does not mean shouting or casting out. It means making someone swear.

The Greek root is horkos, "oath." From it came horkizein, to bind someone by an oath, and Merriam-Webster glosses it as "to adjure." Adding ex-, "out," gave exorkizein. The Encyclopedia of Religion, as reproduced on Encyclopedia.com, describes it as a compound meaning "to cause to swear, or to bind by an oath." In ordinary Greek the verb could simply mean to adjure someone. In English its descendants usually mean a formal swearing out of an invading spirit.

That is the logic of the rite. The exorcist charged the spirit, under oath and in the name of God, to depart. The 19th-century writer Edward Smedley defined exorcising as to bind or charge upon oath, by the use of certain words and ceremonies.

The words reached English through Late Latin and French. Merriam-Webster dates exorcism to the 14th century and the verb exorcise to 1539. Exorcist came via Late Latin exorcista from Greek exorkistēs. The verb has since loosened, and today you can exorcise a bad memory or an old fear.

For centuries the exorcist was also a church office. Smedley notes that exorcists formed one of the minor orders of the Roman Catholic Church, and that the Council of Antioch in 341 listed them alongside readers and subdeacons. At ordination the bishop handed the candidate a book of exorcisms. The order gradually became symbolic. According to The Catholic Telegraph, Pope Paul VI suppressed the four minor orders in 1972, keeping only the ministries of lector and acolyte.

The rite itself was codified in the official Roman Ritual in 1614. The Vatican updated it in 1999, for the first time since then, while keeping the main text largely intact.

English has a Latin parallel to the oath idea. Conjure comes from Latin conjurare, "to join in taking an oath," and one of its senses is to summon a spirit by invocation.