The ego-defensive function refers to holding attitudes that protect our self-esteem or that justify actions that make us feel guilty. For example, one way children might defend themselves against the feelings of humiliation they have experienced in P.E. lessons is to adopt a strongly negative attitude to all sport. The ego-defensive function refers to holding attitudes that protect our self-esteem or that justify actions that make us feel guilty.