- Where does the story of Hanuman and Mahiravana come from?
- Who was Mahiravana and what did he want?
- What is the Panchamukha Hanuman form and why did Hanuman need it?
- What does the Mahiravana episode symbolize?
- How is this story used in practice today?
- How does Mahiravana compare to other demons Hanuman fights?
- Common misconceptions about Hanuman and Mahiravana
In the epic Ramayana, after Hanuman burns Lanka, Ravana turns to his most dangerous ally: Mahiravana, the king of the underworld (Patala). Mahiravana kidnaps Rama and Lakshmana in their sleep, dragging them into the abyss. Hanuman takes the form of a tiny bee, follows the demons, and discovers that Mahiravana can only be killed if the five oil lamps in his temple are extinguished at the exact same instant. What follows is Hanuman’s transformation into the five-faced Panchamukha form and the only battle in the Ramayana fought entirely beneath the earth.
Hanuman vs Mahiravana is the story of Hanuman’s descent into Patala to rescue Rama and Lakshmana from the rakshasa king Mahiravana, who has a boon of conditional immortality tied to five simultaneously burning lamps. Hanuman defeats Mahiravana by assuming his Panchamukha (five-faced) form and blowing out all five lamps at once, a feat no other being could perform.
Where does the story of Hanuman and Mahiravana come from?

The Mahiravana episode does not appear in the oldest surviving version of the Ramayana composed by Valmiki (circa 7th–5th centuries BCE). It is a later addition that appears in several regional versions composed between the 12th and 16th centuries CE.
The most influential source is the Krittivasi Ramayana (or Shri Ram Panchali), written by the Bengali poet Krittivas in the 15th century CE. Krittivas drew on oral traditions and local folklore to expand the story beyond Valmiki’s framework. In the Tamil tradition, the Kamba Ramayanam (12th century CE by the poet Kamban) includes a similar underworld episode, though with differences in detail. The Telugu Ranganatha Ramayana (14th century) and the Odia Jagamohana Ramayana (15th century) also recount the battle.
In the Sanskrit tradition, the story appears in the Adhyatma Ramayana (a 14th–15th century text attributed to the sage Vyasa but likely composed by Ramananda) and the Ananda Ramayana (17th century). The latter gives a more elaborate version, including the names of Hanuman’s five faces and the specific mantras used.
Scholars agree that the Mahiravana episode reflects a wider folk motif: the hero who descends to the underworld to rescue captives. It also introduces a demon whose death depends on extinguishing flames, a condition that requires Hanuman to use a form not seen elsewhere in the Ramayana.
Who was Mahiravana and what did he want?

Mahiravana (sometimes spelled Mahiravan or Mahirawana) is a rakshasa king who rules Patala, the lowest of the seven underworld realms in Hindu cosmology. He is the son of Ravana’s maternal uncle Ravanaka. This makes him Ravana’s first cousin, not his brother. In some versions, he is also the younger brother of Meghanada (Indrajit), but sources disagree.
Mahiravana’s boon came from the goddess Mahamaya (a form of Tripura Sundari). She granted him conditional immortality: he could not be killed as long as five brass lamps burned simultaneously in his inner sanctum. The lamps were fed with ghee (clarified butter) and positioned at five points representing the five elements. No weapon could harm him while the flames stood. This boon made him arrogant, and he promised Ravana he would end the war by killing Rama and Lakshmana.
His method was stealth. While Rama and Lakshmana slept under guard on the battlefield, Mahiravana used his sorcery to enter their tent in the form of a mosquito. He stung them with a narcotic poison that rendered them unconscious, then carried them through a tunnel that led to Patala. The tunnel opened inside the Mahakali temple in his palace.
Hanuman, guarding the camp, discovered the empty beds. He followed the trail of ghee drops the demons had left behind and transformed into a bee small enough to slip through the tunnel’s mouth.
What is the Panchamukha Hanuman form and why did Hanuman need it?
Inside Mahiravana’s temple, Hanuman found the five lamps burning on a raised platform. He tried to extinguish them one at a time, but each lamp re-lit instantly if the others were still burning. He realized the boon required simultaneous extinguishing. No single mouth could blow out five flames in different directions at once.
Hanuman then assumed his Panchamukha or five-faced form. The five faces are:
- Hanuman (east): the monkey face, representing strength, devotion, and the element earth.
- Narasimha (south): the lion-man face, representing courage and the destruction of evil.
- Garuda (west): the eagle face, representing speed and the ability to counteract serpent venom.
- Varaha (boar) (north): the boar face, representing the ability to burrow through obstacles and lift the earth.
- Hayagriva (upward): the horse face, representing knowledge and the defeat of ignorance.
Each face faced a different direction, allowing Hanuman to simultaneously blow out the lamps: Hanuman blew east, Narasimha south, Garuda west, Varaha north, and Hayagriva upward. All five flames died at once.
With the boon broken, Mahiravana rushed to the temple. The battle that followed is described in the texts as brief but intense. Mahiravana used both weapons and illusion, but Hanuman’s five faces neutralized every attack. The demon’s strength faded when the lamps were gone. Hanuman killed him with a single blow of his fist.
He then located Rama and Lakshmana tied to the altar of the temple. They were still unconscious from the poison. Hanuman dispatched the poison using the medicinal herbs he had earlier fetched from the Himalayas (the sanjeevani episode). He lifted both brothers onto his shoulders and flew back to the battlefield before dawn.
What does the Mahiravana episode symbolize?
The story operates on multiple symbolic levels, each tied to the practices of tantric and devotional Hinduism.
The five lamps and the five senses. The lamps represent the organs of perception (sight, hearing, smell, taste, touch). Mahiravana’s invulnerability while the lamps burn indicates that a being controlled by sense objects cannot be defeated by ordinary means. Hanuman’s ability to extinguish all five simultaneously shows mastery over the senses, a state of total concentration (dhyana). Devotees often recite the Panchamukha Hanuman Kavacham while visualizing the five flames in their own mind.
The descent into Patala. Patala is not simply a geographic underworld; it is the realm of the subconscious, of hidden fears, repressed desires, and ancestral karma. Hanuman’s journey inward mirrors the spiritual practitioner’s descent into their own unconscious to retrieve the imprisoned soul (Rama and Lakshmana representing the individual self and the life force).
Mahiravana’s boon. Conditional immortality is a recurring motif in the Ramayana and Mahabharata. The condition always contains a hidden weakness. In Mahiravana’s case, the weakness is the simultaneity of the flames. The requirement is not just to extinguish them but to do so at the same instant, a feat that demands a being who can act in multiple directions simultaneously. This is why no ordinary warrior could kill him. Hanuman alone, through his divine nature as a Rudra avatar, could multiply his faces and breath.
The five faces as cosmic directions. The Panchamukha form covers the four cardinal directions and the zenith. In temple iconography, the faces are often painted in five colors: white (Hanuman), red (Narasimha), green (Garuda), yellow (Varaha), and blue (Hayagriva). Each face corresponds to a specific deity and a specific power. The symbol is used in protective rituals: a five-faced image placed over a doorway is said to guard all directions.
How is this story used in practice today?
The Mahiravana episode is the origin of the Panchamukha Hanuman cult, which is especially strong in South India, particularly in Tamil Nadu, Karnataka, and Andhra Pradesh. Temples dedicated to Panchamukha Hanuman often have a five-faced icon carved in black granite or panchaloha (five-metal alloy). The most famous is the Panchamukha Anjaneya Temple in Nanganallur, Chennai, consecrated in 1995.
Devotees chant the Panchamukha Hanuman Stotram or Panchamukha Hanuman Kavacham for protection against enemies, black magic, and nightmares. The stotram names all five faces and asks for their specific blessings. It is often recited in the early morning after bathing, facing east.
The story is also retold in yakshagana (theatre) performances in Karnataka, where the actor playing Hanuman wears a five-faced mask painted in the traditional colors. The performance lasts through the night, and the extinguishing of the lamps is recreated with a single breath from the actor.
In some households, devotees keep a small brass lamp with five wicks, known as a Panchamukha deepam, that they light on Saturdays (the day of Hanuman in Tamil tradition). They recite the story while rotating the lamp clockwise, symbolizing the removal of obstacles in all directions.
How does Mahiravana compare to other demons Hanuman fights?
Hanuman battles several rakshasas in the Ramayana, but Mahiravana is unique because he is fought entirely in the underworld. The other notable encounters include:
- Surasa (the mother of nagas), who tests Hanuman by blocking his path to Lanka. He defeats her by entering and leaving her mouth, an act of submission that satisfies her boon.
- Kalanemi (Ravana’s brother-in-law), who tries to sacrifice Hanuman to the goddess Kali. Hanuman breaks his chains and kills him with a chariot wheel.
- Ahiravana (sometimes confused with Mahiravana). In some traditions, Ahiravana is a serpent-demon who also fights Hanuman in Patala. The two names are used interchangeably in certain oral versions, but the Ananda Ramayana distinguishes them: Ahiravana is the snake-form, Mahiravana the rakshasa king. The five-lamp boon belongs specifically to Mahiravana.
The key difference is that Mahiravana required a transformation of Hanuman’s own form, not just strength or trickery. The Panchamukha form is the only instance in the Ramayana where Hanuman multiplies his faces; his tail-fire in Lanka and his size-shifting are common, but the five faces appear only for this demon.
Common misconceptions about Hanuman and Mahiravana
Misconception: The story is in the original Valmiki Ramayana.
It is not. The oldest manuscript of Valmiki’s version (the critical edition by the Oriental Institute, Baroda) does not contain a Mahiravana episode. The story appears first in the Kamba Ramayanam (12th century) and the Krittivasi Ramayana (15th century). Devotees who claim it is in Valmiki are relying on later interpolated manuscripts or oral tradition.
Misconception: Mahiravana is Ravana’s brother.
He is Ravana’s cousin, the son of Ravana’s maternal uncle Ravanaka. In some versions, he is also described as Ravana’s brother-in-law (married to Ravana’s sister). The confusion arises because later vernacular texts use the kinship term loosely.
Misconception: Hanuman assumed the five faces to impress the gods.
He did not. The five faces were a tactical necessity. Each face had a specific power needed for the situation: Narasimha to tear through the demon’s armor, Garuda to counter the serpent poison in the temple, Varaha to dig through collapsing tunnels, Hayagriva to chant protective mantras, and his own face to locate the lamps.
Misconception: The five lamps represent the five Pandavas.
No. The number five corresponds to the elements (earth, water, fire, air, ether) and the sense organs. The Pandava connection is a modern folk etymology.
FAQ
Is Mahiravana related to Ravana?
Yes, Mahiravana is Ravana’s first cousin, the son of Ravana’s maternal uncle. Some versions call him Ravana’s brother-in-law, but the consensus is a cousin relationship.
What is Panchamukha Hanuman?
The five-faced form of Hanuman he assumed to defeat Mahiravana. The faces are Hanuman, Narasimha, Garuda, Varaha, and Hayagriva, each facing a different direction.
Why could Mahiravana only be killed if five lamps were extinguished together?
He received a boon from the goddess Mahamaya granting conditional immortality. As long as five lamps burned simultaneously in his temple, no weapon could harm him. The condition was simultaneous extinguishing, which required a being with multiple mouths.
Is the Mahiravana story in the original Ramayana?
No. It is a later addition found in regional versions such as the Kamba Ramayanam (12th century) and the Krittivasi Ramayana (15th century). It does not appear in Valmiki’s critical edition.
The descent into Patala and the five-faced form of Hanuman remain among the most visually striking episodes in the later Ramayana tradition. For the practitioner, the story serves as a reminder that some obstacles cannot be overcome by brute force alone: they demand simultaneous mastery of multiple faculties. The lamps must all die at once, and only a being of total concentration can achieve it.
For further reading, explore our mythology hub for more Hindu epic narratives, or consult the glossary of Hanuman for details on his attributes and iconography. You may also be interested in our guide to the complete Ramayana to see where this episode fits in the larger arc of Rama’s journey.
