The opioid receptor family in mammals has four members called delta, kappa, mu, and NOP (the nociceptin/orphanin receptor). We show here that they arose from a common ancestral gene through quadruplication of a large chromosomal region, presumably in the two basal vertebrate tetraploidizations. The four opioid peptide precursor genes have a more complicated evolutionary history involving chromosomal rearrangements but nevertheless seem to have arisen in the same time period as the receptors. Thus the system of opioid peptides and receptors was already established approximately 450 Ma at the dawn of gnathostome evolution.