A coin bought a measured pour of holy water
The earliest known coin-operated vending device is described by Hero of Alexandria, an engineer writing in the first century CE. It dispensed holy water at a temple—not food or drink from a street-side machine. Hero wrote in Greek, which is why the device is often associated with ancient Greek engineering, though Alexandria was in Roman Egypt.
The machine addressed a practical problem: letting visitors obtain a small amount of temple water without someone having to pour each serving by hand. Its design turned the weight of a coin into a brief opening of a water valve.
How the mechanism worked
A coin dropped through a slot and landed on one end of a balance arm inside the vessel. Its weight pushed that end down, lifting a plug from the outlet. Water then flowed out. As the coin slid off the arm, the counterweight pulled the lever back and the plug closed the opening.
The result was a self-limiting pour: the valve stayed open only while the coin pressed the lever down. The machine’s cleverness lay not in complex parts, but in using gravity, a pivot, and a movable plug to make payment and dispensing part of one motion. Thus, one of the earliest vending designs was built for a ritual setting, where a coin could trigger a controlled serving of sacred water.






