According to Freud’s psychoanalytic framework, the mind was composed of the id, driven by instinct and desire, the superego, driven by morality and values, and the ego which moderates the two and creates one’s identity. Many features contribute to ego functioning, including insight, agency, empathy, and purpose.