Carbon in a fossil is covered + preserved by dirt → fossil discovered years later, one takes a sample, measures amount of carbon 14 in sample, based upon the percentage relative to carbon 12, you can see how much of the carbon 14 decays into nitrogen → based upon how much of it has decayed, you can obtain a relative age of the fossil.