Flies begin life as eggs laid in moist, organic matter such as rotting food, manure, or compost. The eggs hatch into larvae—small, worm-like creatures that feed and grow before pupating. Inside a hard shell, the pupa transforms into an adult fly.
Early sailors used the term "emerging" to describe flies appearing from pupae. They believed in spontaneous generation, the idea that flies arose directly from rotting matter rather than from eggs.