Shiva made the Kirtimukha creature as an answer to a challenge. In the best-known telling, the asura king Jalandhara sent the deity Rahu to demand that Shiva give up Parvati. Shiva’s reply was a ravenous creature, and that creature’s story explains why its face now guards temple doors.
The challenge behind the creature
Jalandhara was a powerful asura king. In the Shiva Purana, as summarized in reference works on the myth, his ambitions turned to Parvati after the sage Narada praised her beauty. Jalandhara then sent Rahu, the deity known for eclipsing the moon, to make the demand. Rahu carried the message, and the story treats the demand as the start of the conflict.
Shiva’s answer
In the telling found in Wikipedia’s account of the Kirtimukha myth, Shiva’s answer was a burst of power from his third eye. It produced a lean, ravenous, lion-like creature. Rahu was terrified, begged for mercy and was spared. The creature, however, needed something to eat.
In other versions, the creature came from Shiva’s anger, and in one of them from a lock of his hair. The origin changes between tellings, but in each one the creature is Shiva’s reply to the demand.
Why the creature devours
The creature’s meal is where the story turns. In one telling, Shiva instructs the creature to consume human selfishness, greed and attachment. In another, which some devotional sources connect to the Padma Purana, Shiva tells it to devour itself. It consumes its own body piece by piece until only the head remains.
Many readers take the devouring as symbolic: a force that consumes what is harmful, or the vices a worshipper should leave behind. Those readings are interpretations added to the story, not part of the myth as told.
Why it was given a lasting place
Shiva was pleased with the creature. He named it “Face of Glory” and ordered that it always stand at the doors of his temples. Its permanent place at the door to the sanctum of a garbhagriha temple is part of the story’s ending: once the challenge was answered, the creature became a guardian of the threshold.
What the story does not settle
The texts do not give one clear motive beyond answering the challenge. Shiva’s anger and his power both appear in different tellings, and no single text gives a full explanation. Because the versions differ on origin and purpose, the most accurate answer is to name the version you are reading.