At their core, molecular machines operate similarly to macroscopic machines but on a much smaller scale. They often rely on changes in molecular conformation to execute movements or perform functions. For example, a molecular rotor might rotate when exposed to specific wavelengths of light, or a molecular switch might change states in response to a chemical stimulus.