What is Disk Fragmentation’s purpose?

Hello! I was advised by someone to perform disk fragmentation on my computer because it might improve my computer's overall speed and performance. Is this true? What exactly does disk fragmentation do? Does it delete files too? What kind of operation are performed in disk fragmentation? These operations are applied on the files on the disk, right?
