The two released a joint statement Sunday, confirming they're divorcing.
"After much consideration, we have mutually and amicably decided to end our two-year marriage," read the statement obtained by ABC News. "We ask for privacy during this difficult process, and no further comments will be made from either one of us about this personal matter."
The couple had no children together.
This was the fourth marriage for Anthony.
The singer also has three children from previous relationships.
Anthony and Lopez, 47, have apparently remained friendly despite their split. He is serving as executive producer for Lopez's Spanish-language album that is to be released in 2017, according to Billboard.