Jennifer Lopez files for divorce from Ben Affleck

More than two years after Jennifer Lopez and Ben Affleck tied the long-anticipated knot, the couple have called it quits again.

Lopez filed for divorce Tuesday in Los Angeles County Superior Court, according to court documents. A source close to Lopez said the couple did not have a prenup.

TMZ was the first to report the divorce filing.

The longtime lovers finally married in July 2022 after having rekindled their relationship the previous year.

Lopez and Affleck were engaged in the early 2000s but broke up before they were married and then spent a long 17 years apart.

Lopez was married from 2004 to 2014 to singer Marc Anthony, with whom she shares her two children, and she was engaged to New York Yankee Alex Rodriguez in 2019 before they broke up in 2021.

Film Premiere of Daredevil (Kevin Winter / Getty Images file)
Jennifer Lopez and Ben Affleck arrive at the premiere of "Daredevil" in Los Angeles in 2003.

In total, Lopez has been married four times.

During the period, Affleck was married to actor Jennifer Garner from 2005 to 2018. They have three children together.

Lopez and Affleck met on the set of "Gigli" in 2002, according to Vulture, and by November of that year, they were engaged.

Two years later, in 2004, Lopez announced their split.

After Lopez and Rodriguez separated in 2021, she was often photographed with Affleck, prompting rumors that the lovebirds had given it another go.

Lopez announced in April 2022 that she and Affleck were once again engaged — 20 years after the first proposal. They married July 16, 2022, and got a marriage license from Clark County, Nevada, court records show.

The couple married in Las Vegas and arrived at the chapel just before midnight to wait in line with four other couples, according to Lopez’s fan newsletter, the J Lo, which blasted out the news just after the ceremony.

Image: Ben Affleck and Jennifer Lopez (John Rasimus / STAR MAX via AP file)
Jennifer Lopez and Ben Affleck at the 78th Venice International Film Festival in Venice, Italy, in 2021.

"We did it," the report said. "Behind us two men held hands and held each other. In front of us, a young couple who made the three hour drive from Victorville on their daughter’s second birthday — all of us wanting the same thing — for the world to recognize us as partners and to declare our love to the world through the ancient and nearly universal symbol of marriage."

The pair said at the time that "it was the best possible wedding we could have imagined. One we dreamed of long ago and one made real."

Rumors began to swirl in May that the couple was on the outs, as tabloids reported that they hadn't been seen together in weeks and that Affleck had moved out of their home, which was then put up for sale, before he moved into his own home, according to reports.

This article was originally published on NBCNews.com