According to Sigmund Freud's psychoanalytic theory of personality, the id is the personality component made up of unconscious psychic energy
that works to satisfy basic urges, needs, and desires. The id operates based on the pleasure principle, which demands immediate gratification of needs.
The libido, a term used by in psychoanalytic theory to describe the energy created by the survival and sexual instincts, is part of the id and is the driving force of all behavior.
Although the term libido has taken on an overtly sexual meaning in today's world, to Freud it represented all psychic energy and not just sexual energy.