One of the first things we learned about Omar Mateen, the gunman in last year's nightclub massacre in Orlando, Florida, was that his ex-wife said he had beaten her severely until she left him in 2009.

If it sounds familiar that a gunman in a mass shooting would have a history of domestic violence, it should.

In February 2016, Cedric Ford shot 17 people at his Kansas workplace, killing three, only 90 minutes after being served with a restraining order sought by his ex-girlfriend, who said he had abused her. And Man Haron Monis, who holed up with hostages for 17 hours at a cafe in Sydney, Australia, in 2014 — an episode that left two people dead and four wounded — had terrorised his ex-wife. He had threatened to harm her if she left him, and was eventually charged with organising her murder.

When Everytown for Gun Safety, a gun control group, analysed FBI data on mass shootings from 2009 to 2015, it found that 57 percent of the cases included a spouse, former spouse or other family member among the victims — and that 16 percent of the attackers had previously been charged with domestic violence.

Social scientists have not settled on an explanation for this correlation, but their research reveals striking parallels between the factors that drive the two phenomena.

There are, of course, a tangle of factors behind every murder, especially terrorism inspired by foreign groups. But research on domestic violence hints at a question that often arises from seemingly inexplicable events like Mateen’s massacre of 49 people at an Orlando nightclub — what drives individuals to commit such mass attacks? — and sheds light on the psychology of violence.

Domestic violence often follows a pattern in which an abuser seeks to control every aspect of a victim’s life. The scope and intent of this are hinted at in one name experts use for it: “intimate terrorism.”

“The perpetrator is engaging in a general pattern of control over the victim — her finances, her social contacts, the clothes she wears,” said Deborah Epstein, who runs Georgetown University Law Center’s domestic violence clinic.

Violence is the perpetrator’s means of enforcing that control — and of punishing any attempts to break it.

Mateen’s brief marriage to Sitora Yusufiy seems to fit this model. She has said that he forced her to hand over her paychecks to him, forbade her to leave the house except to go to work, and prevented her from contacting her parents. Even small perceived infractions were met with a violent response.

“He would just come home and start beating me up because the laundry wasn’t finished or something like that,” Yusufiy told The Washington Post.

Take this dynamic of coercive violence to its most horrible extreme, and it looks an awful lot like how Isis treats women in its self-proclaimed caliphate. As my Times colleague Rukmini Callimachi has reported, the group has created a vast infrastructure of rape and slavery in which women are held captive and bought and sold by its fighters. It is intimate violence on an industrial scale.

Domestic violence, experts say, is also often a way for male abusers to impose their view of “traditional” gender roles. Epstein said such “traditions” in the United States were rooted in the idea of men having control over women.

“That’s our culture: It’s all about men controlling women in their lives,” she said. “Intimate terrorism stems from that desire to control.”

This bears striking similarities to how Isis presents its treatment of women as a recruiting tool, promising young men abroad — particularly in Europe — that its caliphate will allow them to restore “traditional” gender norms of male dominance. This dominance is exercised in part through violence including systematic rape and the threat of rape. The group often presents this violence as a means to measure and protect men’s honour.

It seems natural, then, that Isis might appeal to men who desire that sort of control over the women in their lives, separate from any ideological draw — the kind of men who might have domestic violence in their past.

Nimmi Gowrinathan, a visiting professor at the City College of New York who studies women’s roles in insurgent and terrorist conflicts, said that restrictive norms about gender and sexuality could be a “pull” factor for terrorist organisations — but that people who are drawn to them are also often “pushed” by their own pre-existing attitudes or desires.

Terrorist attacks and mass shootings garner attention and frighten the public much more than episodes of domestic violence. But domestic violence has a much higher death toll in the United States.

According to the Violence Policy Center, 895 women in the United States were murdered by their current or former intimate partners in 2013 (and this does not include those killed amid mass shootings). That single-year tally is more than nine times the 92 people the New American Foundation has counted as killed in jihadi attacks on US soil in the past decade.

But there are striking parallels between the intimate terrorism of domestic violence and the mass terrorism perpetrated by lone-wolf attackers like Mateen seems to have been. Both, at their most basic level, are attempts to provoke fear and assert control.

Domestic violence, experts say, often occurs when an abuser concludes that violence is the best tool to solve his or her grievances. That might mean a husband who perceives his wife’s failure to do the laundry as a challenge to his rightful authority, leading him to try to reimpose his will through violence.

Clark McCauley, a professor at Bryn Mawr College who studies the psychology of mass violence and terrorism, said he was not aware of research finding a causal relationship between domestic violence and terrorism. But he has found that a characteristic common to mass killers is a sense of grievance: a belief that someone, somewhere, had wronged them in a way that merited a violent response.

A domestic abuser’s desire to impose, by force, supposed traditional gender roles also sometimes includes sexuality. Such abusers, experts say, may see homosexuality as a threat to their masculinity.

“There is an idea that what it means to be masculine is to be vigilant of your sexuality, and hyper-vigilant towards keeping anyone from perceiving you as gay,” said Gillian Chadwick, a fellow at Georgetown University Law Center.

Intimate terrorism, in that sense, rests on a broader spectrum of violence meant to preserve the traditional dominance of heterosexual men, and coerce those who are perceived as threatening that order. That spectrum, at the extreme end, includes mass shootings.

This connection makes it somewhat easier to understand an apparent contradiction: that Mateen targeted a gay nightclub and that his father and ex-wife have said he had a history of homophobic remarks, but that he also had been seen visiting Pulse, the gay nightclub he targeted, and, according to some news reports, used a gay dating app.

Texas church shooting Show all 9 1 /9 Texas church shooting Texas church shooting The site of the mass shooting at First Baptist Church in Sutherland Springs, Texas Reuters Texas church shooting First responders are at the scene of shooting at the First Baptist Church Reuters Texas church shooting Enrique and Gabby Garcia watch investigators at the scene of the mass shooting AP Texas church shooting Law enforcement officials investigate the scene at the First Baptist Church in Sutherland Springs, Texas Reuters Texas church shooting Carrie Matula embraces a woman after a fatal shooting at the First Baptist Church in Sutherland Springs Associated Press Texas church shooting Law enforcement officials gather near the First Baptist Church Getty Images Texas church shooting Community members come together for a candlelight vigil for the victims of the deadly church shooting in Sutherland Springs Laura Skelding/AP Texas church shooting Mourners participate in the candlelight vigil held for the victims Jay Janner/Austin American-Statesman via AP Texas church shooting A vehicle is hauled onto a flatbed truck where the suspect in a deadly church shooting was found dead in Guadalupe County William Luther/Austin American-Statesman via AP

Could Mateen have been trying to use violence to reimpose rules about gender and sexuality that he himself was troubled about violating? If so, he would not be the first.

Chadwick said there was an entire category of legal argument, called “gay panic” and “trans panic” claims, in which defendants say that they turned to violence because they were so upset about being perceived as gay, or about discovering they were attracted to a transgender person.