There are sacred places, things and persons. Mistreatment of a sacred place, thing or person is the sin of sacrilege.
By blessings and consecrations, places, things and persons are taken from the secular, temporal, profane realm and given to the sacred.
Sometimes sacred places, such as churches or cemeteries, are mistreated to the point of being desecrated. These churches must then be put back into sacred order before they can be used again. As we read in the Code of Canon Law for the Latin Church:
Can. 1211 Sacred places are violated by gravely injurious actions done in them with scandal to the faithful, actions which, in the judgment of the local ordinary, are so grave and contrary to the holiness of the place that it is not permitted to carry on worship in them until the damage is repaired by a penitential rite according to the norm of the liturgical books.
In the older, traditional way of doing things, a church or cemetery could be “reconciled” after profanation by a bishop or a priest with (at least) presumed permission. You can see the traditional rite HERE. I especially like this prayer:
Almighty and merciful God, who conferred on your priests above all others this great grace, that whatever they do worthily and exactly in your name, is regarded as being done by you; we pray that in your kindness you may be present wherever we are present and may bless whatever we bless. And at our lowly coming, through the merits of your saints, may demons flee and the angel of peace be at hand; through Christ our Lord.
I just read a story of the “reconciliation” of a desecrated church in Missouri. HERE The Bishop of Jefferson City, Most Rev. John R. Gaydos, carried out the rite.
“Christ restored completely what Satan had taken from us,” Fr. Peckman, pastor of St. Clement Parish, said. “It was as if the sun was breaking over the horizon to let us know that the Light of Christ conquers the darkest sorrow the devil can inflict.”
The Devil hates sacred places, things and persons. His agents will attack them constantly.