Compression artifacts are distortions or loss of data that occur when a file is compressed using lossy compression techniques, resulting in a noticeable degradation of quality. These artifacts are particularly visible in images and videos where they manifest as blockiness, blurring, or ringing, affecting the visual experience.