Diaphragm pumps work by using the movement of the diaphragm to draw in and discharge the fluid. The diaphragm flexes back and forth, creating a vacuum that draws the fluid into the pump and then discharges it under pressure.