The Brahmin priests were prime agents in this. They received generous offerings (such as Queen Rajyavati made after her husband’s death). In return they provided the caste ideology that legitimized the kings’ rule, and they discovered extraordinary genealogies for them.