Ben Affleck has hit out at the media's treatment of former fiancée Jennifer Lopez when they were together.

Affleck and Lopez began dating after her divorce from backing dancer Chris Judd in 2002. They became engaged, but they called off their engagement a day before they were set to marry in September 2003. They split in January 2004.

People magazine reports that in an interview with The Hollywood Reporter's Awards Chatter podcast, the actor said the media was "so f****** mean about her - sexist, racist".

"Ugly, vicious s*** was written about her in ways that if you wrote it now, you would literally be fired for saying those things you said," he continued. 

"There's always a story of the month, and me dating Jennifer Lopez happened to be that tabloid story"

"Now it's like, she's lionised and respected for the work she did, where she came from, what she accomplished - as well she f****** should be! 

"I would say you have a better shot, coming from the Bronx, of ending up as like [Justice Sonia] Sotomayor on the Supreme Court than you do of having Jennifer Lopez's career and being who she is at 50-years-old today."

"You know, there's always a story of the month, and me dating Jennifer Lopez happened to be that tabloid story at the time when that business grew exponentially," Affleck reflected. 

"Still, to this day, [someone] will go, 'I see you out there in the paparazzi and the pictures!' It's like, 'Yes, I left my house and took out the trash. It's not like I'm trying to...' And it's still like, 'You were taking a pap walk!' As if, if you leave your house, you're only doing so in the hope that you could be so lucky that you could end up as the sixth item in The Daily Mail. It's absurd!"

Ben Affleck in Finding the Way Back

Affleck is seen as a possible Oscar nominee this year for his performance in the sports drama Finding the Way Back. The Oscar nominations are announced on 15 March, with the ceremony due to take place on 25 April.

Click here for more movie news.