Olivier Martinez and Halle Berry seen on June 16, 2014 in Los Angeles, California.
CNN  — 

Halle Berry and Olivier Martinez have finalized their divorce nearly eight years after the former couple filed their initial petitions.

They have agreed to share joint legal and physical custody of their 9-year-old son Maceo, according to a copy of the judgment filed on Tuesday and obtained by CNN.

Berry has also agreed to pay Martinez $8,000 a month in child support.

The Oscar-winner and “Unfaithful” actor announced in a statement shared with CNN in October 2015 that they had “come to the decision to divorce.”

“‎We move forward with love and respect for one another and the shared focus of what is best for our son. We wish each other nothing but happiness in life and we hope that you respect our and, most importantly, our children’s privacy as we go through this difficult period,” the statement read.

At the time, Berry and Martinez filed separate petitions for divorce in the days that followed their statement, both citing irreconcilable differences.

The former couple became close after meeting on the set of the 2012 film “Dark Tide” and went on to marry in July 2013 in a private ceremony in France.

Berry announced in April of that year that she was expecting a baby with Martinez, telling CNN that she felt “fantastic.”

“This has been the biggest surprise of my life, to tell you the truth. I thought I was kind of past the point where this could be a reality for me. So it’s been a big surprise and the most wonderful,” she said at the time.

Berry had previously been wed to baseball player David Justice and singer Eric Benet. She was also in a prior relationship with Canadian model Gabriel Aubry, with whom she shares one daughter, 15-year-old Nahla. This was Martinez’s first marriage.

CNN’s Melonyce McAfee contributed to this report.