Ego is the part of us that identifies as something. The more obsessive you are about this identification, the more "egoistic" your nature becomes trying to defend this identity.