Self-punishment (or the "need for punishment") is a tendency, postulated by Freud, which drives certain subjects to inflict suffering upon themselves and search out painful situations, for the purpose of neutralizing a feeling of unconscious guilt. In the framework of the second topography of the psychic apparatus, Freud later attributed self-punishment to the activity of an especially intransigent superego, to which the ego submits.