Dante’s Inferno has nine layers of the underworld, each for a different sin.
The punishment for the sins committed in life is to be sent to a specific layer of hell. Each layer has a guardian demon who punishes those who have committed that sin.
The first three layers are for the virtuous pagans who rejected Christianity, but were good people. They are Minos, Rhadamanthus and Aeacus who judge you based on your actions in life. They decide if you go to Limbo, Purgatory or Heaven.
According to the story, the next three layers are for the gluttons (Pride), Gluttony (Greed) and Lust (Lust). These people are punished by being split into two parts: one half is frozen in ice and the other half is burning in flames. The demons keep them separated so they can never touch each other again, even after death.
The next three layers are for the slothful (Sloth), Wrath (Wrath) and Heresy (Heresy). These people spend eternity upside down with their heads cut off because they did nothing with their lives and therefore have nothing to show for it at all. Their heads are replaced by just their mouths so that they can never rest.
The ninth circle houses the worst sinners, including those guilty of fraud and treachery. The eighth circle is reserved for betrayers and those who committed treason against their country; the seventh circle houses those who were violent to their neighbors; the sixth circle is reserved for sodomites, or homosexuals; and so on.