In such situations, the file is split into several data chunks and spread across different blocks of the hard drive. It usually happens when there is no contiguous block of memory available to store a file. In simple terms, fragmentation is a process of spreading data across different sectors of the hard disk. To understand defragmentation, we need to begin with fragmentation first.