Tahmures was the son of Hushang. In his time the world was much troubled by the "deev"s (demons) of Ahriman. On the advice of his vizier Shahrasp (), Tahmuras used magic to subdue Ahriman and made him his slave, even riding upon his back as on a horse. The demons rebelled against Tahmuras, and he made war against them with both magic and force. By magic he bound two-thirds of the demons; the remaining third he crushed with his mace. The "deevs" now became Tahmuras's slaves and they taught him the art of writing in thirty different scripts.