Mating and spawning are distinct events in blue crab reproduction. Males may mate several times and undergo no major changes in morphology during the process. Female blue crabs mate only once in their lifetimes during their pubertal, or terminal, molt. During this transition, the abdomen changes from a triangular to a semicircular shape. Mating in blue crab is a complex process that requires precise timing of mating at the time of the female's terminal molt. It generally occurs during the warmest months of the year. Prepubertal females migrate to the upper reaches of estuaries where males typically reside as adults. To ensure that a male can mate, he will actively seek a receptive female and guard her for up to 7 days until she molts, at which time insemination occurs. Crabs compete with other individuals before, during, and after insemination, so mate guarding is very important for reproductive success. After mating, a male must continue to guard the female until her shell has hardened. Inseminated females retain spermatophores for up to one year, which they use for multiple spawnings in high salinity water. During spawning, a female extrudes fertilized eggs onto her swimmerets and carries them in a large egg mass, or sponge, while they develop. Females migrate to the mouth of the estuary to release the larvae, the timing of which is believed to be influenced by light, tide, and lunar cycles. Blue crabs have high fecundity: females may produce up to 2 million eggs per brood.