The humble beaver could save U.S. waterways.

According to new research, the animals' dam-building skills protect rivers threatened by climate change. The buck-toothed aquatic rodent creates ponds and excavates waterways when its habitat dries up — actions that could lessen climate change's damage by controlling rivers' flow and improving water quality.

"As we're getting drier and warmer in the mountain watersheds in the American West, that should lead to water quality degradation," Stanford University professor Scott Fendorf, a senior author of the beaver study, told SWNS. "Yet unbeknownst to us prior to this study, the outsized influence of beaver activity on water quality is a positive counter to climate change."

The impact these incredible creatures have had on U.S. waterways has some dubbing beavers the "working class heroes of their ecosystems," researchers shared.

The study, published in Nature Communications, is based on mountain rivers in Colorado and found that beavers' dams raise water levels upstream. Water is then diverted into surrounding soils and secondary waterways — known collectively as riparian zones.

The zones act as filters, straining out excess nutrients and contaminants before water re-enters the main channel downstream. The benefits of the beavers' buildings are set to grow in the years ahead when hotter conditions will likely lessen water quality.

Fendorf and colleagues also found that beaver dams increased nitrate removal by nearly 50 percent — boosting water for oxygen-breathing aquatic organisms.

Initially, the study's lead author, Dr. Christian Dewey of Oregon State — whose mascot, incidentally, is a beaver — had set out to track seasonal changes in hydrology.

"Completely by luck, a beaver decided to build a dam at our study site," Dr. Dewey said. "The construction of this beaver dam afforded us the opportunity to run a great natural experiment."

The team reviewed data on water levels gathered hourly by sensors installed in the river and throughout the riparian area and collected water samples — including from below the ground's surface to monitor nutrient and contaminant levels. Researchers also compared the area's water quality from a historically dry year, 2018, to water quality the following year, when water levels were unusually high.

The year-long datasets were then compared to the area's water quality during the nearly three-month period, starting in late July 2018, when the beaver dam blocked the river.

During periods of drought, as less water flows through rivers and streams, the concentrations of contaminants and excess nutrients, such as nitrogen, rise. Major downpours and seasonal snowmelt are needed to flush out contaminants and restore water quality.

Researchers found that the beaver dam built near the study's site dramatically increased the removal of nitrate, a form of nitrogen, by creating a surprisingly steep drop between the water levels above and below.

RELATED VIDEO: Rescued Baby Beaver Feeds From Bottle

"Beavers are countering water quality degradation and improving water quality by producing simulated hydrological extremes that dwarf what the climate is doing," Fendorf said.

The study is a reminder that as the future impacts of climate change are assessed, feedback from changes in ecosystems must also be included.

"We would expect climate change to induce hydrological extremes and degradation of water quality during drought periods," Fendorf added. "In this study, we're seeing that would have indeed been true if it weren't for this other ecological change taking place, which is the beavers, their proliferating dams, and their growing populations."