The spectrum of somatic TP53 single basepair substitutions detected in 955 cancers was compared with that of 2,224 different germline mutations in 279 different human genes (other than TP53), reported as the cause of inherited disease. This comparison reveals that, disregarding a relatively small subset (12%) of TP53 mutations that probably result from the action of exogenous mutagens, both the relative rates and the nearest-neighbor spectra of single basepair substitutions are similar in the two datasets. This spectral resemblance suggests that a substantial proportion of cancer-associated somatic TP53 mutations result from endogenous cellular mechanisms. The likelihood of clinical observation of a particular mutation type differs, however, between tumors and genetic diseases, when the chemical properties of the resulting amino acid substitutions are considered. Together with a sixfold higher observation likelihood for mutations at evolutionarily conserved residues, this finding argues that selection is a critical factor in determining which TP53 mutations are found to be associated with human cancer.