The couple, who began dating in 2002 and then split for 17 years, stood in line for a marriage license and were wed on Saturday
Lopez's fan newsletter, the J Lo, reported on Sunday, "We did it." The couple flew to Vegas and arrived at the chapel shortly before midnight.
The couple received a marriage license in Clark County, Nevada, on July 16, court records show. The license was issued to Benjamin Geza Affleck and Jennifer Lopez.
Lopez wrote she wore a dress from an old movie and Affleck wore a jacket from his closet.
The couple met on the set of the rom-com "Gigli" in December 2001, where they played criminals stuck on a job together and struck up a real-life friendship.
The two were engaged by November 2002, but their wedding was postponed in September 2003 due to "excessive media attention" surrounding their wedding.
They never made it down the aisle and ended their engagement in January 2004.