Freud (1923) found that the self was constituted of three different personality structures: the id, the ego, the superego respectively (this video here illustrates it).
The philosophy of self is the study of the many conditions of identity that make one subject of experience distinct from other experiences. The self is sometimes understood as a unified being essentially connected to consciousness, awareness, and agency.
The Self is a complex and core subject in many forms of spirituality. Two types of Self are commonly considered—the Self that is the ego, also called the learned, superficial Self of mind and body, an egoic creation, and the Self which is sometimes called the "True Self", the "Observing Self", or the "Witness".