Evolution can seem pretty astonishing by itself. The varied and specific adaptations used by many organisms can seem at times to defy logic. Symbiosis only makes it seem more unlikely — how could two separate species evolve traits that just happen to fit so perfectly together?
In fact, many people who question evolution point to symbiosis as "proof" that these couldn't happen naturally.
Passing on the Most Useful Traits
Natural selection is the key to understanding how symbiosis evolves. In a given population, some organisms will have traits that are more advantageous to successful reproduction than others. Therefore, organisms with those traits are more likely to pass them along to succeeding generations, while those without them have a greater chance of dying before they reproduce.
Thus, over many generations, the population will tend to look more and more like the individuals with successful traits.
The success or failure of traits depends on population pressure — circumstances that make it more difficult for individuals to survive. Traits that allow a creature to take advantage of the other life forms in its environment will be just as successful as the traits that allow it to escape (or eat) them.
From 'Nice to Have' to 'Need to Have'
Most symbiotic relationships probably started out as facultative. Over many generations, the organisms came to depend more on symbiosis because natural selection favored those traits and not others.
Eventually, the symbiosis became the sole source of the food, shelter, enzyme or whatever else the symbiotes derived from one another.
Another way to look at symbiosis is as evolution's toolbox. Trees need the nutrients found deep within the soil. They could evolve more efficient root systems that would allow them to extract those nutrients themselves — in fact, many trees have.
But this can take a lot of time (tens of thousands of years or more) and might not happen at all. It just so happens that fungi already have this ability. When the two species find themselves in close proximity, it is much faster to evolve a way to incorporate the "tool" already available to the other organism than to reinvent the wheel.
Symbiogenesis
Some biologists are proponents of a theory known as symbiogenesis. This theory, which has fairly widespread acceptance, suggests that symbiosis is actually the key to the origins of complex life on Earth.
Symbiogenesis theorists think that increasingly diversified microbes entered into a series of symbiotic relationships, with different microbes performing the tasks vital to microbial existence.
These relationships evolved into a tightly integrated network of reciprocal microbes, each acting as a cog in the machine. They eventually evolved a casing enclosing them all. The microbes that made up this "team" became the parts of a cell: mitochondria, nuclei, ribosomes.
Bugs, Bats, Birds and Flowers
Many plants depend on animals to help them get pollen from the stamen of one plant to the ovum of another plant. These plants have evolved flowers that attract pollinators either by color or scent.
In a symbiotic relationship, the flower contains nectar, a sweet, energy-rich material that gives the insect, bat or bird a nutritional benefit. When the animal moves on to the next flower for more nectar, it inadvertently carries pollen there, accomplishing the plant’s goal of pollination.
Some animals have evolved very specialized features, such as shaped beaks or proboscises, to withdraw nectar efficiently. The flowers, in turn, may have a specific shape that only allows a certain species of animal to get nectar from them.
This allows the plant to monopolize that animal’s pollination efforts, since it won’t be flitting around to other species of plant.