Compression works by exerting external pressure on a specific part of the body. This pressure helps to improve blood flow and reduce the accumulation of fluid. In conditions like lymphedema, compression helps to move lymph fluid, reducing swelling and discomfort.