The false ego is transformed into mind by interaction with the mode of goodness. All the demigods who control the phenomenal world are also products of the same principle, namely the interaction of false ego and the mode of goodness.
Srimad Bhagavata Purana
श्रीमद्भागवतमहापुराणम्
मूल श्लोकः
वैकारिकस्तैजसश्च तामसश्चेत्यहं त्रिधा । अहन्तत्त्वाद्विकुर्वाणान्मनो वैकारिकादभूत् । वैकारिकाश्च ये देवा अर्थाभिव्यञ्जनं यतः
vaikārikastaijasaśca tāmasaścetyahaṃ tridhā | ahantattvādvikurvāṇānmano vaikārikādabhūt | vaikārikāśca ye devā arthābhivyañjanaṃ yataḥ
SB 3.5.30