The Internet erupted Tuesday when Ben Affleck and Jennifer Garner confirmed they would get a divorce. Rumors swirled for weeks about their marriage, but the Hollywood duo was in therapy for two years-- with the past few months being especially trying, E! News wrote in an exclusive report.

"They grew apart. They were great parents together but they were not always on the same page,” an insider told E! News. "Things have been very challenging for the last several months.”

They share three children together: Violet, 9; Seraphina, 7; and Samuel, 3. The split is amicable and they want to co-parent their children, the source said. They are going to meet with a mediator and business manager until custody and their finances are resolved, TMZ wrote.

Infidelity has not been given as a reason for their split. “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,” they said in their official statement. "This will be our only comment on this private family matter. Thank you for understanding."

Jennifer Garner Divorce rumors are swirling about Hollywood stars Ben Affleck and Jennifer Garner. Photo: Reuters

Affleck and Garner tried for months to save their marriage, so the decision to divorce did not come easy, E! News wrote. They even attempted a trial separation for 10 months, where Affleck stayed at hotels.

 The Internet took the breakup to heart. “Ben Affleck” soon became a top-trending topic on Twitter. While some fans lamented they no longer believed in love, others were happy they might have a chance with the Oscar winner. Others joked that since gay marriage is legal, Affleck would marry best friend Matt Damon.

Personal turmoil aside, Affleck is preparing for his role as the new Batman. "Justice League: Part One," is slated to debut in theaters in 2017.

Follow me on Twitter @mariamzzarella