The medieval indulgence sold by the Church was supposed to shorten the stay of a soul in purgatory. Buying one was thought to ease a restless spirit and stop, or prevent, a haunting.