The visual pigments of vertebrates evolved about 500 million years ago, before the major evolutionary step of the development of jaws. Four spectrally distinct classes of cone opsin evolved through gene duplication, followed by the rod opsin class that arose from the duplication of the middle-wave-sensitive cone opsin. All four cone classes are present in many extant teleost fish, reptiles and birds, but one or more classes have been lost in primitive fish, amphibians and mammals. Gene duplication within the cone classes, especially in teleosts, has resulted in multiple opsins being available, both temporally and spatially, during development.