The couple got married in Las Vegas in July 2022, having been previously engaged before splitting up in 2004.
Now, court documents have been filed by Lopez at the LA County Superior Court in the US, marking the second anniversary of the estranged' couple.
News of the couple's divorce filing brings an end to months of speculation over their relationship.
Back in May, it was reported that Affleck and Lopez were no longer living together, with the Argo star a noticeable absentee from the Met Gala, where Lopez acted as co-chairwoman.
Ben Affleck had been previously married to actress Jennifer Garner for 13 years, before divorcing in 2018. The former couple share three children.
Including Affleck, Jennifer Lopez has been married four times, including to singer Marc Anthony with whom she shares 16 year old twins, Max and Emme.
Both Lopez and Affleck have yet to comment on the matter.