Ego and Compromise

I’ve always believed that my ego is what I strongly feel and think. According to you, what is ego? Should we let go of it? While ego does come in the way of a compromise and giving up one’s stand, sometimes it pays to stick to your guns. How do we come to know that ego is getting the better of us?