A Religious cosmology (also mythological cosmology) is a way of explaining the origin, the history and the evolution of the cosmos or universe based on the religious mythology of a specific tradition. Religious cosmologies usually include an act or process of creation by a creator deity or a larger pantheon.
In Buddhism, the universe comes into existence dependent upon the actions (karma) of its inhabitants. Buddhists posit neither an ultimate beginning or final end to the universe, but see the universe as something in flux, passing in and out of existence, parallel to an infinite number of other universes doing the same thing.
The Buddhist universe consists of a large number of worlds which correspond to different mental states, including passive states of trance, passionless states of purity, and lower states of desire, anger, and fear. The beings in these worlds are all coming into existence or being born, and passing out of existence into other states, or dying. A world comes into existence when the first being in it is born, and ceases to exist, as such, when the last being in it dies. The universe of these worlds also is born and dies, with the death of the last being preceding a universal conflagration that destroys the physical structure of the worlds; then, after an interval, beings begin to be born again and the universe is once again built up. Other universes, however, also exist, and there are higher planes of existence which are never destroyed, though beings that live in them also come into and pass out of existence.