Several definitions describe a "molecular machine" as a class of molecules typically described as an assembly of a discrete number of molecular components intended to produce mechanical movements in response to specific stimuli. The expression is often more generally applied to molecules that simply mimic functions that occur at the macroscopic level. A few prime requirements for a molecule to be considered a "molecular machine" are: the presence of moving parts, the ability to consume energy, and the ability to perform a task. Molecular machines differ from other stimuli-responsive compounds that can produce motion (such as cis-trans isomers) in their relatively larger amplitude of movement (potentially due to chemical reactions) and the presence of a clear external stimulus to regulate the movements (as compared to random thermal motion). Piezoelectric, magnetostrictive, and other materials that produce a movement due to external stimuli on a macro-scale are generally not included, since despite the molecular origin of the motion the effects are not useable on the molecular scale.
This definition generally applies to synthetic molecular machines, which have historically gained inspiration from the naturally occurring biological molecular machines (also referred to as "nanomachines"). Biological machines are considered to be nanoscale devices (such as molecular proteins) in a living system that convert various forms of energy to mechanical work in order to drive crucial biological processes such as intracellular transport, muscle contractions, ATP generation and cell division.