Before creation and in dissolution, the world exists as one absolute existence, which is God (generator, operator, and destructor).
The Lord, though without form and attributes, and beyond all Gunas, projected this universe out of his Divine power.
Having brought forth this universe, He dwells within all beings and within all things. Yet He remains unaffected, for He is pure consciousness.
The creation, preservation and dissolution of the universe are all divine play.
Srimad Bhagavad Purana