A diaphragm pump operates using a flexible diaphragm that reciprocates back and forth, creating a variable volume chamber. As the diaphragm moves, it alternately increases and decreases the space within the pump, thereby drawing in and expelling fluid. Check valves ensure that the fluid flows in one direction.