Physicists find a novel way to switch antiferromagnetism on and off