Compressors make loud sounds quieter and quiet sounds louder by decreasing or "compressing" the dynamic range of an audio signal. A compressor is often used to stabilize volume and smooth a note's "attack" by dampening its onset and amplifying its sustain. A compressor can also function as a limiter with extreme settings of its controls.
source: Wikipedia