Despite their decision to divorce, Ben Affleck and Jennifer Garner remain a united front for the sake of their family.

Following the announcement of their separation on Tuesday, June 30, the couple — who married in June 2005 — jetted off to the Bahamas with their three children, Violet, 9, Seraphina, 6, and Samuel, 3.

ben affleck and jennifer garner

Ben and Jen in LA on June 10, 2015.

“The family felt it was important to be together and they were together. The family is united and, no matter what, will protect the kids,” a source told People of their vacation.

RELATED: Ben Affleck and Jennifer Garner Call it Quits — Plus See 8 More Celebrity Couples Who Were Married for 10+ Years Before Divorcing

According to the magazine, Ben, 42, and Jen, 43, were spotted sitting together on the beach while their children played nearby. Though the actor seemed to be “distracted” during their conversation, the duo appeared “to be cordial to each other,” an onlooker said.

jennifer garner kids

Jen with Violet, Seraphina and Samuel in August 2013.

“They would look at each other and speak and then both look away in silence. A lot of the time, they seemed to just stare off into space,” the onlooker added.

Since revealing their split, the Alias actress has reportedly been leaning on her close friends for support during this difficult time. “She has a close circle of pals who she trusts and are really protective of her. Her girlfriends have been really supportive. They just want her to be happy,” an insider told People.