When factories were built, the pollution made all the trees look black. Now the light coloured moths were obvious against the dark bark. The dark coloured moths had the advantage after the environment changed. The genes controlling dark colour spread through the population of moths. After the second world war, controls against pollution worked to make the environment cleaner. Then the lighter moths once again had the advantage, and are now much more common.