The chain of custody refers to the process of maintaining and documenting the handling of a sample from the time it is collected until it is disposed of or archived. This is crucial in histology to ensure the integrity and traceability of specimens, particularly when they are used for diagnostic, research, or legal purposes.