Purgatory
Purgatory is a belief in Catholic theology. It is a passing intermediate state after physical death for purifying or purging a soul before entering Heaven. A common analogy is dross being removed from gold in a furnace.
Read more on Wikipedia