Compression springs are mechanical devices designed to store energy and apply a compressive force when the spring is compressed. They are commonly used in applications requiring resistance to applied pressure and the ability to return to original length after compression.