In Hinduism the universe is infinite, no beginning or end, but cyclical in nature. Every period of the cosmos is created by Brahma with new worlds, stars and galaxies. Vishnu lying on the serpent Ananta keeps them in existence. Until finally Shiva destroys everything and a new cycle begins.