Scientists found a way to use light to change magnetism and electron behavior in atom-thin materials. The method could help future devices switch with less wasted heat.