Ego and superego at two elements that describe the structure of the mind as presented by Sigmund Freud. The third element of this classification is the Id. Although both are similar in that they are part of the conscious, preconscious, and unconscious state of an individual, there are still some differences between the two.
Ego is usually referred to as the most central part of one's mind that interacts with one's surroundings. It operates with the reality principle, and that's why it is usually regarded as the rational and reality-focused part of the mind. Superego, on the other hand, works as a self-critical conscience.
It strengths the social standards and morals that have been learned. At times, to differentiate between ego and superego, you will need to think of the former as common sense and the later as the conscience. The ego works by trying to maintain the balance between Id, superego, and reality, whereas the superego works by trying to restrict the ego and Id due to the possible consequences of actions.