A piston compressor, also known as a reciprocating compressor, is a type of mechanical device designed to compress gases. It operates on the principle of using one or more pistons moving back and forth within cylinders to compress and then discharge the gas. This compression process increases the pressure of the gas, making it suitable for various applications across industries.