During the Electra complex, girls develop penis envy. However, over time, they replace their desire for a penis with a desire for a baby. They therefore view themselves as similar to their mother so identify with her. This then leads them to internalise her gender role, thus developing a feminine gender identity.