Exercise temporarily boosts feel-good chemicals called endorphins. It may also have long-term benefits for people with depression. Regular physical activity seems to encourage the brain to rewire itself in positive ways. You don’t need to run marathons to get a benefit. Just walking a few times a week can make a huge difference.