A piston is a part that usually moves in a cylinder. It is widely used in hydraulic and pneumatic systems. The cylinder is a tubular part, usually cylindrical, in which the piston moves. As the piston moves back and forth in the cylinder, mechanical movement is produced by taking energy from hydraulic or pneumatic pressure.