In the Middle Ages, the Catholic Church sold indulgences to absolve sins or crimes that had been committed or were to be committed.