Id, ego, and super-ego
The ego is the sense of self and the surface of the personality, the part you usually show the world. The ego is governed by the 'reality principle', or a practical approach to the world. It seeks to turn the id’s drive to behaviour which brings benefits in the long term rather than grief.