According to Freud, during the phallic stage, which occurs between the ages of three and six years, the child's libido is focused on his/her genitals. The child's gender identity is subsequently resolved during this stage either through the Oedipus complex in boys, or the Electra complex in girls.