Superego: The superego contains internalised societal and parental standards of "good" and "bad", "right" and "wrong" behaviour.
Ego: The ego acts as a moderator between the pleasure sought by the id and the morals of the superego, seeking compromises to pacify both.