The numbers of functional olfactory receptor (OR) genes in humans and mice are about 400 and 1,000 respectively. In both humans and mice, these genes exist as genomic clusters and are scattered over almost all chromosomes. The difference in the number of genes between the two species is apparently caused by massive inactivation of OR genes in the human lineage and a substantial increase of OR genes in the mouse lineage after the human-mouse divergence. Compared with mammals, fishes have a much smaller number of OR genes. However, the OR gene family in fishes is much more divergent than that in mammals. Fishes have many different groups of genes that are absent in mammals, suggesting that the mammalian OR gene family is characterized by the loss of many group genes that existed in the ancestor of vertebrates and the subsequent expansion of specific groups of genes. Therefore, this gene family apparently changed dynamically depending on the evolutionary lineage and evolved under the birthand-death model of evolution. Study of the evolutionary changes of two gene families for vomeronasal receptors and two gene families for taste receptors, which are structurally similar, but remotely related to OR genes, showed that some of the gene families evolved in the same fashion as the OR gene family. It appears that the number and types of genes in chemosensory receptor gene families have evolved in response to environmental needs, but they are also affected by fortuitous factors.