He is a gatekeeper in the spirit realm, he aspired to become the new Omamori-sama, but the Nue, to keep him at bay, forced him to become one of his shikigami. He too, in his past life, was human.
(Source: Wikipedia)