Her love life was already complicated.

Rep. Ilhan Omar (D-Minn.) — who was accused of being “the other woman’’ in a DC doctor’s marriage Tuesday — had previously been involved in an intertwined pair of relationships for years.

Records show that the 37-year-old Somali refugee applied for a marriage license to a man named Ahmed Abdisalan Hirsi in 2002. She was 19, having immigrated to the States five years earlier.

The duo was never officially married, at least at the time.

Instead, they wed in a traditional Muslim ceremony and had two children before splitting up in 2008, Omar has said.

The next year, she married Ahmed Nur Said Elmi, whom she described as a “British citizen,” records show.

She has said the pair split in 2011 but never officially ended their marriage, although they dissolved it according to Muslim tradition.

Omar then took up again with Hirsi the next year, and the couple had a third child in 2012, records show.

She was elected to the Minnesota House of Representatives in 2016, making her the first Somali-American Muslim legislator in the country.

In 2017, Omar finally officially divorced Elmi. She legally wed Hirsi the next year.

That same year, in 2018, Omar won election to Congress, becoming one of the first two Muslim women to serve there.

She has since sparked months of political controversy over her ultra-left-wing stances on everything from immigration to Israel’s treatment of Palestinians.

Omar has since separated from Hirsi, although it’s not clear when, the Daily Mail reported in July. When confronted about the story at the time, Hirsi replied, “I’m sorry, I just can’t say anything.”

Omar’s camp did not respond to requests for comment from The Post on Tuesday. But she told a local Minneapolis TV station, WCCO, that the pair has not separated. She refused to comment further.

The freshman congresswoman has been hounded over her seemingly odd back-and-forth love life amid suspicions that Elmi is her brother and that she married him to provide him with a green card.

She has called the allegations “disgusting lies.”

With Post wires