Disk formatting is the process of preparing a data storage device such as a hard disk drive, solid-state drive, or USB flash drive for initial use, which includes setting up an empty file system. It involves both low-level formatting, which creates the physical structure, and high-level formatting, which establishes the logical structure and file system for data storage and retrieval.