The word anathema has two main meanings. One is to describe that something or someone is being hated or avoided. The other refers to a formal excommunication by a church. These meanings come from the New Testament, where an Anathema was a person or thing cursed or condemned by God. In the Old Testament, an Anathema was something or someone dedicated to God as a sacrifice, or cursed and separated from God because of sin. These represent two types of settings, one for devotion, the other for destruction.
Anathema (in the sense of a curse) attributed to Pope Gregory XI
A mention of anathema in the Southwick Codex, a medieval text in Old English
Anathema or curse in a 12th-13th century manuscript of the Ter Doest abbey
Excommunication is an institutional act of religious censure used to deprive, suspend, or limit membership in a religious community or to restrict certain rights within it, in particular those of being in communion with other members of the congregation, and of receiving the sacraments.
Fanciful 16th-century fresco in the Sala Regia, by Giorgio Vasari, depicting Pope Gregory IX excommunicating Frederick II. Since few details were provided to the artist, Vasari chose to paint an excommunication scene generically. In the traditional excommunication procedure, the pope and his priests would hurl burning candles on the ground and stamp them out. The painter however here chose to show the pope personally stepping on the emperor.
Plaque on exterior of the Chiesa della Pietà in Venice, the church of the orphanage. This is where the foundling wheel once stood. The inscription declares, citing a 12 November 1548 papal bull of Pope Paul III, that God inflicts "maledictions and excommunications" on all who abandon a child of theirs whom they have the means to rear, and that they cannot be absolved unless they first refund all expenses incurred.
Martin Luther was excommunicated by Pope Leo X in 1521.
Threat of excommunication for stealing books from the Salamanca University library