In Hindu mythology, the creation of Goddess Kali is a fascinating and complex story with different versions across various texts and traditions. However, one prominent narrative does involve Lord Shiva, although he is not depicted as the direct creator of Kali.
One well-known version comes from the "Devi Mahatmya" (also known as the "Durga Saptashati" or "Chandi Path"), which is a part of the Markandeya Purana. In this story, Goddess Durga (another form of the Divine Mother) creates Kali to combat the demon Raktabija. Raktabija has a unique ability where each drop of his blood that falls to the ground spawns another demon like him. To counter this, Durga summons Kali, who is depicted as a fierce and powerful goddess. Kali drinks the blood of Raktabija before it can touch the ground, thus preventing more demons from being created and ultimately defeating him.
In another narrative found in some Puranas and folk traditions, Kali emerges from the forehead of Goddess Durga (or Parvati, another form of Durga) in a moment of extreme anger, specifically to destroy the demons Sumbha and Nisumbha. This emergence is less about creation by another deity and more about a manifestation of Durga's own energy and wrath.
While Lord Shiva is not typically described as the creator of Kali, he does play a significant role in her stories. For instance, in one famous tale, Kali, in her furious state, is calmed by Shiva when he lies down in her path. Realizing she is standing on her husband, she calms down, which symbolizes the balance between destruction and regeneration.
Therefore, while Lord Shiva is intricately connected with Goddess Kali in various mythological tales, he is not typically considered her creator. Instead, Kali is more commonly seen as an aspect or emanation of Goddess Durga or Parvati.