Defense mechanisms were first described by Sigmund Freud and protect the conscious mind from contradictions between the id and superego, ultimately contributing to mental balance. These mechanisms were part of Freud's psychoanalytic theory and help resolve conflicts between the mind's impulses and societal expectations.