Freud proposed that the human psyche is composed of three parts: the id, ego, and superego. The id is the impulsive, unconscious part that demands immediate gratification. The ego develops to mediate between the id and reality. It works to satisfy the id's demands in realistic ways. The superego incorporates social values and morals, controlling the id's impulses. It causes feelings of guilt when urges are acted on and pride when behaving properly. These parts develop at different stages and allow the psyche to balance internal needs with external demands.