(CNN)If you've ever seen a production of "West Side Story," you'll be familiar with gangs of males, clicking their fingers in synch while seeing off rivals or prowling for a mate.
Up until now, scientists believed that humans were the only animals that worked together, synchronizing their actions and noises with their friends. But some new research shows that male bottlenose dolphins do it, too.
While many male animals coordinate their calls or displays as part of a rivalry -- for example, the flashing of fireflies -- humans and dolphins are the only species that do it in order to cooperate, a team of researchers from the Universities of Western Australia and Bristol in the UK has found.
Scientists had already observed the bottlenose dolphins in Shark Bay, Western Australia synchronizing their movements -- swimming, leaping and surfacing at the same time.
The new research finds that they match sounds to their movements, much like humans dancing or marching to music, according to a press release from the University of Bristol.
The findings, published in the journal Proceedings of the Royal Society B, show how important this coordination is in allowing male bottlenose dolphins to reproduce.
In order to fertilize a female, the males form groups of 4-14 individuals, made up of smaller alliances of two or three dolphins, according to the paper.
"They stay in these alliances their entire lives," researcher Stephanie King, a behavioral biologist at the University of Bristol's School of Biological Sciences, told CNN, despite the fact that the individual members aren't related.
King explained that individual male dolphins that aren't part of an alliance wouldn't be able to fertilize a female, and pairs or trios from the same larger alliance may compete for females.
They use synchronized movements to maintain social bonds and show their strength to rival groups.
"It shows alliance unity," said King.
The researchers wanted to see whether the alliances also synchronized their sounds, so they recorded the dolphins using microphones dragged through the water behind a small boat.
Between 2016 and 2018, they recorded 59 dolphins from seven different alliances, capturing sounds known as "pops."
After analyzing pop sequences from five pairs of dolphins, the researchers found that four pairs changed the tempo of their sounds to match their partner's.
Only males make these sounds, and they only make them when they are herding a female in order to fertilize her.
The pops are used to defend the female against attacks from rivals and issue a warning to her if she swims too far from the males, King said.
In humans, coordinated behavior, such as marching or dancing, promotes bonding, thanks to the release of the hormone oxytocin. King says the effect may be similar in dolphins.
"Such synchronous and coordinated behaviour between allied males may therefore promote cooperative behaviour and regulate stress, as it has been shown to do in humans," said King in the press release.
During the next stage of the research the scientists will play recordings of the pop sounds to both male and female dolphins to see how they react, King said.
Then the team will investigate whether synchronized behavior affects success in mating.
Right now, scientists aren't sure if each male in an alliance mates with the female repeatedly during herding, or if only one of them gets the chance.
However, research shows that each male in a long-term alliance appears to father a similar number of babies.
The team want to build on their research to see if certain pop sounds mean some groups are more successful at mating than others.