A compression is a region in a longitudinal wave where the particles are closest together. A rarefaction is a region in a longitudinal wave where the particles are furthest apart. … The region where the medium is compressed is known as a compression and the region where the medium is spread out is known as a rarefaction.
Trying to share a picture for a better understanding.