Background: Most rapidly evolving gene families are involved in immune responses and reproduction, two biological functions which have been assigned to the carcinoembryonic antigen (CEA) gene family. To gain insights into evolutionary forces shaping the CEA gene family we have analysed this gene family in 27 mammalian species including monotreme and marsupial lineages. Results: Phylogenetic analysis provided convincing evidence that the primordial CEA gene family in mammals consisted of five genes, including the immune inhibitory receptor-encoding CEACAM1 (CEA-related cell adhesion molecule) ancestor. Our analysis of the substitution rates within the nucleotide sequence which codes for the ligand binding domain of CEACAM1 indicates that the...