Gear pumps operate by trapping fluid in the spaces between the teeth of two meshing gears and the pump casing. As the gears rotate, the fluid is moved from the inlet to the outlet, generating a continuous flow. This simple yet effective mechanism makes gear pumps highly reliable and easy to maintain.