Every night while you sleep, your brain takes out the trash.

It clears out the cellular junk that builds up during the day — the kind of damage that, if left alone, can lead to memory problems and dementia later in life. And new research suggests exercise might help this cleanup crew work better as we age.

Scientists at Victoria University in Melbourne, Australia, found that regular physical activity could support the brain's waste-clearance system, known as the glymphatic system. Dr. James Broatch led the research, recently published in the peer-reviewed journal Trends in Neurosciences.

The findings matter because more than 10 million people worldwide receive a dementia diagnosis each year, and there is currently no cure. Understanding how exercise protects the brain could open new doors for preventing cognitive decline.

The glymphatic system does much of its work while we sleep. It washes away harmful proteins and waste that accumulate in the brain throughout the day. But this system becomes less efficient as people grow older — the very time when it matters most. Dr. Broatch and his team wanted to know whether exercise could help fill that gap.

After reviewing existing studies in both animals and humans, they found that exercise appears to improve several processes connected to this brain-cleaning system. The benefits include reducing blood pressure and stiff blood vessels, reducing brain inflammation, lowering stress hormones during rest, and improving sleep quality overall. Exercise may also boost deep sleep and slow brain waves that help clear out waste.

"If we don't have opportunities for the brain to essentially clean out the junk from the day, we know that build-up is damaging, especially as we age," Dr. Broatch said. "Sleep is more crucial than ever to play this role, but the irony is, good quality sleep can often be harder to get as we get older. This study asked, what if exercise could support that process?"

The answer appears to be yes — through several connected pathways, including better sleep, healthier blood vessels, and reduced inflammation throughout the body and brain.

Of course, researchers still have questions. They do not yet know exactly how much exercise is ideal, which activities offer the most benefit, or whether recommendations should differ for people already experiencing memory problems. Dr. Broatch is currently working on some of those answers.

Even so, the research gives people another reason to get moving. "If nothing else, this is yet another reminder that regular movement — especially the type that lifts your heart rate — is so important for every part of your health," Dr. Broatch said. "The earlier we can develop these good habits, the better as we age."