Would you like to have a real friend? The kind you can call in the middle of the night and say, “Come over.” And he’ll come. His only question: “Where?”

Now imagine you both fancy the same woman. Still quite so glad to see him?

If this were a story about two women and one man, somebody would already have said, “See? That’s why there’s no such thing as friendship between women.” Male friendship, for some reason, comes with a certificate of authenticity. We got curious about how it could ever have taken root in such an awkward place: between two rivals, each of whom, you’d think, would rather the other stayed home today.

In Uganda’s Ngogo forest, primatologist David Watts watched male chimpanzees for whom the answer depended on how many other contenders were around. As long as a male could drive his rivals away from a female on his own, there was little point in putting up with another male nearby. But what if there were too many for him to handle alone? Sometimes two or three males drove the others away together, then let one another mate with the female. By Watts’s estimate, each ally got a larger share of the matings than he could have expected on his own. Sometimes, it seems, it really does pay for your rival to show up. Watts’s field study

The bargain is straightforward: each male lets the other mate and gets his help in seeing off their rivals. That gives them both a reason to call a truce. But a truce is a long way from a friendship. Once the female has gone, what would make either of them go looking for the other?

In The First Love on Earth, we suggested that one root of attachment lies in caring for the young. A newborn has little to offer its mother; it’s the newborn that needs her to stay. Two allies have a different reason for sticking together: each can do more with the other there. If males that sustain such bonds leave more offspring on average, natural selection could favour the capacity to grow attached to an ally. That’s our hypothesis. For the animal, it might feel quite simple: of all his rivals, there’s one he’s glad to see. Yesterday, because together they managed something he couldn’t do alone. Today, he’s just glad it’s him.

So far we’ve seen how the male chimpanzees treated their rivals. What about the female? In Thailand, Toyoda and colleagues observed five groups of stump-tailed macaques. In three of the groups, males took turns mating with a female and together drove off other contenders. In each of the other two groups, one male accounted for roughly eight or nine out of every ten observed within-group matings that ended in ejaculation. The researchers also recorded what the females did. Sometimes a female tried to run, screamed or fought back, and the male mated with her anyway. An agreement between allies tells us nothing about the consent of the female they’ve allied around. Toyoda and colleagues’ study

The macaques had another surprise in store. If we’re talking about selection, sooner or later we have to count the offspring. In one group, three males seemed to be doing rather well for themselves as a team. But when the researchers established the paternity of five infants, not one had been fathered by any of the three. Five infants are hardly grounds for declaring an alliance useless. They do show why it was worth testing the DNA: you can be absolutely right about which males you saw being kept away from a female and quite wrong about who became a father.

Do males that stick closer to their allies actually leave more offspring? The bottlenose dolphins of Shark Bay, Australia, offer a rare chance to find out. There, two or three males keep a female with them, restricting her movements. If another group tries to take her away, allies can come to their aid. Livia Gerber and colleagues matched thirty years of observations with paternity data for 85 males. The males with stronger, more evenly distributed bonds across their alliance had more offspring. In other words, you can learn something about a male’s reproductive success by looking at how he gets on with other males. How dolphin alliances work · Male bonds and offspring numbers

Two bottlenose dolphins swim side by side in sunlit water.
Shark Bay dolphins. Young males that often swim together are more likely to become allies as adults.

A careful reader might ask: what if they made friends first, and only later discovered how much easier it was to keep a female with them? In an individual dolphin’s life, that may be exactly how it happens. Adolescents that often swam together were more likely to become allies as adults. Our hunch concerns a different timescale: many generations. If it pays an adult to have old friends, there may be an advantage in making them young. There’s another possibility, of course: bonds of friendship may have arisen for other reasons and only later proved useful for reproduction. Today’s dolphins show what an alliance is good for now. Nobody saw its first day on Earth. Observations of young bottlenose dolphins

What’s left of an alliance when there’s no female to compete over? At Ngogo, male chimpanzees were more likely to go on boundary patrols with males who backed them up on other occasions. Watching a patrol doesn’t tell us how each alliance began. It does tell us that, for quite a different undertaking, the males still picked their companions from among their allies. Chimpanzees on patrol

Two Yellowstone wolves, known to researchers as 302M and 480M, found a different job to do together. Geneticists discovered that pups in a single litter had different fathers: of the three pups tested, one was sired by the first wolf and two by the second. If a female mates with two males, sperm from one can fertilise one egg and sperm from the other can fertilise another. That summer both males brought food to the pups and to the two females in the pack that had given birth. The pedigree tells us who fathered the pups; the field notes tell us who brought the food. Whether the males helped each other before the pups were born, we don’t know. Once there were young to feed, they already had a reason to work together. The pups’ family tree · Field observations

Two adult wolves approach pups on a trail in a Yellowstone valley.
Yellowstone. Over the summer, both males brought food to the pups and the pack’s nursing mothers.

Back to the man you could call in the middle of the night. Perhaps you met as children, never fought over a woman and never wanted a thing from each other. There’s no mystery here for our hypothesis. We asked what conditions might once have favoured the capacity to grow attached to an ally. Those conditions needn’t repeat themselves for the two of you to meet. His was the number you called. Why his? That’s a story for you and him.

And if true male friendship means more to you now than the woman who first brought you together, what’s left?

Well, you can always have him.