When your hair starts to go gray, that's how you know you're getting old. But those silver strands might be more than just a sign of aging. They could be part of the body's natural process of fighting against cancer, according to a new study.

Over the years, cells are constantly exposed to internal and environmental factors that can damage DNA. For a long time, scientists have been trying to understand more about how it happens and how it affects human health throughout the years.

The stem cells responsible for hair and skin pigmentation have a huge role in this process. They are called melanocyte stem cells (McSCs).

"Hair graying may be a sign that McSCs exceeding a certain threshold have been eliminated, protecting the skin from cancer risk," said Yasuaki Mohri, the lead author of the study from the University of Tokyo.

These cells are located in the region near the base of hair follicles. They produce mature melanocytes and are regenerated each cycle to give hair and skin their color. In the study, researchers from the University of Tokyo have determined what happens when these stem cells are harmed.

They tested mice to see how McSCs react to different kinds of DNA damage, and the results showed support in human tissue. The mice kept their dark fur and did not grow gray strands after being exposed to radiation.

Their damaged stem cells then survived and spread to the surrounding skin, creating pigmented spots that can develop into melanoma (skin cancer).

So, when stem cells that produce hair pigment face DNA double-strand breaks, they go through a process known as senescence-coupled differentiation.

During this process, the body forces the cells to die off, leaving behind gray hair. The gray hair signals the fact that potentially dangerous cells were effectively eliminated.

Happy positive elderly Hispanic woman mirror reflection and back view. Cheerful senior model touching long naturally grey hair, looking at herself, laughing, smilingfizkes - stock.adobe.com - illustrative purposes only, not the actual person

Sign up for Chip Chick's newsletter and get stories like this delivered to your inbox.

However, the cells don't always have this protective response. Exposure to cancer-causing chemicals like UV radiation lets the damaged stem cells retain their ability to self-renew and potentially form tumors instead of causing gray hair.

"In this study, we discovered that seno-differentiation is a mechanism that eliminates McSCs with DSBs beyond a certain level, thereby protecting the tissue, instead expressing the gray hair phenotype," Mohri said.

"Under a carcinogenic environment, however, this process is suppressed, resulting in the retention of severely damaged cells that pose a risk within the tissue."

Overall, the findings tie hair graying and melanoma together, demonstrating that it's okay to accept some gray hairs. Graying hair does not directly prevent cancer, but it can help by ridding the body of potentially dangerous cells. When damaged cells are not properly eliminated, they can survive and multiply, increasing the risk of melanoma.

The study was published in the journal Nature Cell Biology.