Kirava was the king of Grahara, who enjoyed an extensive domain which led him to pillage the realms of other kings and enjoy them as well. One day, he led his army to another land. Everyone fled away except the women, who were unable to get away. When the king heard the women wailing, he asked his ministers about it. Upon hearing the straightforward answer from his ministers, he grew sad and compassion arose in him. He instructed to let the women be reunited with their families. He also gave many gifts to those who had no food, then reflected that he need to practice the Dharma. While he was having such thought, a yogin came to ask for alms. The king gave the yogin an abundance of food and drinks, and received a teaching on the Four Immeasurables. The king then asked for more teachings, and the yogin initiated him into Cakrasamvara and set him to meditating on the Developing and the Perfecting Stages. However, his meditation was interrupted by his thoughts of his army and kingdom, so he was given another instruction on how to overcome them.
After 12 years, the kind envisioned and experienced the truth and obtained siddhi. When he realized his queen and court had obtained siddhi as well, he ordered a great ceremony, saying:
For sentient beings practicing the Four Immeasurables,
Obsessions can be abandoned
Even by acts which look like desire.
The hero, by what looks like great fury,
Can destroy all enemies.
For 700 years, he worked for the benefit of living beings, and with a circle of 600 followers, he went to the realm of the Dakas.