Like with most mythologies, including Mesopotamian and Egyptian, the Norse pantheon had its primeval entity in the form of Ymir, the ancestor of all jötnar (mythic entities that ranged from giants to other fantastical creatures). Now as opposed to a strict categorization as one of the Norse gods, Ymir was perceived more as the ‘first being’ who was created by the ice of Niflheim combined with the heat of Muspelheim , long before the existence of the Earth. And after his own genesis, Ymir, with his hermaphroditic body, was responsible for birthing male, female, and other mythical beings, who in turn would go on to bear future generations.
And mirroring other primeval deities of ancient mythologies, the narrative of Ymir took a turn, with the entity being given a tragic ending due to his apparent evil machinations. To that end, Buri (created after Ymir), often acknowledged as the first of the Norse gods, had a son named Bor, who finally married one of Ymir’s descendants Bestla, and their union produced three sons – Ve, Vili, and Odin. But the angry Ymir confronted these ascending young Norse gods, which eventually led to his own death at the hands of the three brothers.
The three Norse gods, including Odin, then proceeded on to create the entire earth from Ymir’s fallen body, with his blood accounting for the seas and oceans, while his bones made up the rocks and mountains. Furthermore, his hair was used for the trees, his skull was transformed into the sky and heavens, and his brains were made into clouds. And finally, his eyebrows were fashioned into the Midgard – the ‘middle realm’ of mankind.