Jennifer Lopez and Ben Affleck were spotted together with the latter's ex-wife, Jennifer Garner, as well as their children, on a joint outing for a school event.

According to Page Six, the "Deep Water" actor and his wife J.Lo were photographed in Los Angeles after attending a musical performance. They were with the "Let's Get Loud" singer's child Emme from her ex-husband Marc Anthony.

Meanwhile, the "13 Going on 30" actress was spotted walking beside her kids Seraphina and Samuel after the same school event. Affleck and Garner share and co-parent three children. Their eldest, Violet, was not seen in the photos.

The "Argo" actor was wearing a light-colored shirt underneath a flannel long-sleeve button-down. He paired it with khaki pants and sneakers.

On the other hand, Lopez sported an all-white outfit. Her daughter Emme kept it casual with a white top, loose pants, a backpack and headphones over her neck.

As for Garner, she was spotted wearing a gray long-sleeve top paired with loose denim pants and black sneakers. Seraphina wore an all-black outfit, while Samuel donned a white top over brown pants.

Affleck and Garner broke up after 10 years of marriage. They split in 2015 and got officially divorced three years later, per People.

Talking about their co-parenting situation in an interview with E! News at the "Batman v Superman: Dawn of Justice" premiere in March 2016, Ben said, "Jen is a superhero mom. She is an amazing mother, and I'm really lucky to have her as a partner to co-parent these kids with."

"We try our best, we put them first, and that's what we do," he continued.

Meanwhile, for Father's Day last year, Garner gave the "Gone Girl" actor a shout-out after honoring her parents.

"PS Shout out to BGA -- no one loves their kids like you love ours. Happy Father's Day, Ben!" she wrote. BGA is the acronym for the actor's full name, Benjamin Géza Affleck.

Ben and J.Lo tied the knot in a private ceremony at the Little White Wedding Chapel in Las Vegas, Nevada, in July 2022.

The "Gigli" co-stars first dated in 2002 but only rekindled their romance almost 20 years later.

Lopez was previously married to Ojani Noa, Cris Judd and Marc Anthony Muñiz before settling down with Affleck.

The singer-actress shares and co-parents her twins Emme and Max with Muñiz. She also helps raise her stepchildren -- Violet, Seraphina and Samuel.