The process of rewriting parts of a file to contiguous sectors on a hard disk to increase the speed of access and retrieval.