In the canon law of the Catholic Church, excommunication (Lat. ex, "out of", and communio or communicatio, "communion"; literally meaning "exclusion from communion") is a form of censure. In the formal sense of the term, excommunication includes being barred not only from the sacraments but also from the fellowship of Christian baptism. The principal and severest censure, excommunication presupposes guilt; and being the most serious penalty that the Catholic Church can inflict, it supposes a grave offense. The excommunicated person is considered by Catholic ecclesiastical authority as an exile from the Church, for a time at least.
Excommunication is intended to invite the person to change behaviour or attitude, repent, and return to full communion. It is not an "expiatory penalty" designed to make satisfaction for the wrong done, much less a "vindictive penalty" designed solely to punish. Excommunication, which is the gravest penalty of all, is always "medicinal".