Buddhism teaches that existence itself is the problem. Every being is caught in samsara, the wheel of birth and death, reborn life after life according to the quality of karma accumulated — not just by action, but by intention, by the grain of attachment and aversion in every thought. What Buddhists call the afterlife is really the between, a narrow window between one life's ending and another's beginning, a point where the karmic winds blow the mindstream toward its next ground.
The six realms of rebirth form the traditional map. Three upper: deva (gods, long-lived and blissful but complacent and therefore rarely seeking awakening); asura (demi-gods, powerful but consumed with jealousy); human (the most auspicious birth, because only here is suffering evident enough to motivate the search for liberation without overwhelming it). Three lower: animal (dominated by instinct and fear); preta (hungry ghosts, driven by unsatisfiable craving, often pictured with enormous bellies and needle-thin throats); naraka (hell-realms, graded in eight hot and eight cold, each corresponding to a specific quality of past action and each lasting unimaginable eons).
Naraka is not eternal. This is the crucial point. Even the deepest hell-realm exhausts itself when the karma that placed the being there runs out, and the mindstream is reborn elsewhere. Buddhism has no permanent damnation because it has no permanent self to damn. The whole cosmology is instrumental: the six realms exist to illustrate that every possible kind of conditioned existence is unsatisfactory, and that therefore the goal is to escape the wheel altogether.
Nirvana — literally "blowing out," as of a flame — is that escape. Not a place. Not another realm. The Buddha refused even to answer whether one who has attained nirvana "exists" after death, because the categories of existence and non-existence only apply to conditioned things, and nirvana is unconditioned. A parable describes nirvana as asking where the flame of a candle goes when it is extinguished: the question presupposes something that does not survive the answer.
Mahayana schools add the bodhisattva ideal: beings who have attained liberation but who postpone final nirvana to remain in the cycle, life after life, until all beings are released. The bodhisattva vow reframes the whole project. The goal is not personal escape. The goal is universal compassion, with the wheel itself gradually ground into stillness through the accumulated work of those who refuse to leave.
What distinguishes Buddhist eschatology is its denial of the premise. No soul transits. No ghost goes to a place. What transmigrates is a mindstream, a pattern of karmic seeds and conditioned arising; and what the path aims for is not a better rebirth but the end of rebirth itself. Even the hells are temporary; so are the heavens. Only awakening is peace.