All living things contain carbon atoms which comes from the atmosphere. Atmospheric carbon is mainly the stable isotope of carbon 12 but also contains a small amount of carbon-14. The ratio of carbon-14 to carbon-12 in the atmosphere is almost constant and the ratio is the same in all living things. Once an organism dies, it stops taking in carbon whist the total amount of carbon-14 continues to decay, so the ratio decreases over time. The activity from c-14 in a sample is proportional to the number of undecayed c-14 nuclei therefore the time since the organism died can be determined by comparing activities or ratios of c-12 to c-14 with a similar living material. This process is called carbon dating