Ben Affleck and Jennifer Garner seemed to be happily married for 10 years — but new details of their divorce reveal the A-list couple’s union may not have been so blissful after all.

According to a new report, the 42-year-old actor and his 43-year-old wife have been undergoing marriage counseling “for years” and fighting to keep their relationship alive for the sake of their three children, Violet, 9, Seraphina, 6, and Samuel, 3.

ben affleck and jennifer garner

Ben and Jen at the Oscars in February 2013.

“They were in couples therapy for years. They were going to divorce when Sam was born but you know how it is — baby comes and solves the issues for a bit but it’s just a Band-Aid. It hasn’t been working for ages,” a source confessed.

RELATED: Jennifer Garner Gets Candid About Her Post-Baby Body — and Offers Advice to New Moms!

“Ben truly wanted his idea of family life and the idea of family he had growing up in Boston so he stayed in it longer than he wanted to because of the kids and the idea of family. But he couldn’t save it,” the insider told Us Weekly.

jennifer garner

Jennifer and the couple’s three children in October 2013.

On Tuesday, June 30, Ben and Jen officially confirmed their intention to divorce with the following joint statement: “After much thought and careful consideration, we have made the difficult decision to divorce. We go forward with love and friendship for one another and a commitment to co-parenting our children whose privacy we ask to be respected during this difficult time. This will be our only comment on this private, family matter. Thank you for understanding.”

According to People, the couple will continue living together in their Pacific Palisades, Calif., home despite their split. “This should not be an ugly divorce. They plan on co-parenting and doing absolutely everything in the best interest of the kids,” a source told the magazine.