A perpetual motion machine is a hypothetical device that can operate indefinitely without an external energy source or input, producing more energy than it coumes. In other words, it would violate the law of coervation of energy, which states that energy cannot be created or destroyed, only traformed from one form to another.