In the Babylonian creation epic, the great god Marduk fights and kills a monstrous dragon. Having done so,

He divided the monstrous shape and created marvels (from it).

He sliced her in half like a fish for drying:

Half of her he put up to roof the sky,

Drew a bolt across and made a guard hold it….

As for the stars, he set up constellations corresponding to them.