"Ego is nothing but identification of oneself with their body than Soul."
Under the influence of ego a human being forgets the truth about God & thinks his/her identity to be different than others. Once a person knows this knowledge of God, then the delusion of "Maya" disappears & that person shed his / her ego to become one with God again.
Human beings generally crave for Name, Fame, Pleasures of life etc. which satisfies one's ego & these are the Idols in one's life which a person adores very much. But these Idols do not do any good to one self as it obscures one's real 'Soul nature', which is divine with unlimited powers & is always blissful. Such craving for Name, Fame & Sense pleasures drowns one's self respect & obscures the divine being from our sight. These worthless temptations destroy one's reputation & always give delusion by which a person is not able to know his Divine Self.
Below is a verse of Bhagwat Gita which tells how an egoistic person behaves:
"ahankaram balam darpam
kamam krodham cha samsritah
pradvisanto ’bhyasuyakah" (Bhagwat Gita: Chapter Sixteen verse 18)
Below is a verse of Bhagwat Gita which tells how surrendering one's ego one can achieve the God:
"tam eva saranam gaccha
tat-prasadat param shantim
sthanam prapsyasi sasvatam" (Bhagwat Gita: Chapter Eighteen verse 62)
As a rope that is burnt retains its shape intact, but has become all ashes, so that nothing can be bound with it; similarly, the person who feels one with everyone & is devoted to God, retains only the form of his egoism, but not has any idea of vanity (Ahamkâra).
So Let's shed our ego & not be egoistic, as it shall not do any good to one self. Let's surrender our ego in the Divine feet of the God & adore Him only so that He can give us a blissful life.
Jai Sri Krishna