Researchers have identified a neural circuit responsible for inducing insomnia associated with stress. The same neural circuit also induces changes in the immune system.