When stress affects the brain, with its many nerve connections, the rest of the body feels the impact as well. Or, if your body feels better, so does your mind. Exercise and other physical activity produce endorphins — chemicals in the brain that act as natural painkillers — and also improve the ability to sleep, which in turn reduces stress.