A polymer that incorporates liquid-crystal components generates continuous mechanical waves when lit by ultraviolet light, with potential applications for energy harvesting and self-cleaning surfaces.