The writing was on the wall for months.

Jennifer Lopez and husband Ben Affleck had been living apart for months, and they recently they  their very pricey Beverly Hills home.

Today, they made it official when they filed the paperwork with the Los Angeles Superior Court…on their second-year anniversary.

They made it almost exactly two years. ‘Bennifer’ is over.