Hindu Pantheon
Yama
God of death and, in later tradition, the formal judge of the dead. The Rigveda names Yama as the first mortal to die, who found the path to the afterlife that all who follow him must travel; later texts make him ruler of Yamaloka and keeper of cosmic and moral order.
Yama, twin brother of Yami and son of the sun god Vivasvat, was the first mortal to die, and in dying he discovered the path to the afterlife. Later tradition made him the formal ruler of Yamaloka and judge of the dead, weighing each soul's deeds against dharma.
In the Rigveda, Yama is described as the first mortal to die, and in doing so, he discovered the path to the world of the dead that all mortals afterward must follow. He is the twin brother of Yami, and the Rigveda preserves a striking dialogue hymn between them in which Yami urges Yama toward union to continue humankind, which Yama refuses on grounds of the impropriety of union between twins — one of the earliest surviving explorations of incest taboo in Indian literature.

