At the age of 5 or 6, near the end of the phallic stage, boys experience the Oedipus Complex whilst girls experience the Electra conflict, which is a process through which they learn to identify with the same gender parent by acting as much like that parent as possible.