The Superego is formed at the end of the phallic stage, around the age of 5. It is our internalised sense of right or wrong. Based on the morality principle it represents the moral standards of the child's same-gender parent and punishes the Ego for wrongdoing (through guilt).