The chain of custody is a formal process that tracks the possession, handling, and location of samples at all times. It involves documenting each transfer of the sample from one individual or facility to another. This documentation ensures that the sample has been handled in a manner that is legally and scientifically sound.