Among the Puranic accounts of how the composite form of Ardhanarishvara came about, one recurring story addresses a specific cosmological problem: the god Brahma, tasked with creating living beings, first attempts to do so through purely mental creation, willing beings into existence by thought alone, a slow and limited method that leaves creation stalled, since the beings so produced cannot themselves reproduce.
Frustrated, Brahma undertakes austerities and appeals to Shiva for a solution, and Shiva responds by revealing himself in the Ardhanarishvara form, the divine masculine and feminine united in a single body, demonstrating that creation and continuation of life require both principles together rather than either alone. In several versions of the story, Shiva then separates the female half of this composite form outward as an independent goddess, generally identified with Parvati or with a form of the great goddess, who becomes the mother of subsequent creation and makes possible the ordinary sexual reproduction that mental creation alone could not sustain, so that all later procreation in the world is traced back to this primal division of a single divine androgyne into two cooperating principles. This story gives Ardhanarishvara a specific narrative function beyond the purely philosophical statement about the unity of Shiva and Shakti that the image is more commonly read to express: it is also, in this telling, an origin myth for sexual generation itself, explaining why living beings reproduce as they do by tracing the possibility back to a moment when the god who contains both male and female within himself chose to become two so that creation could continue on its own.