Amazon founder Jeff Bezos and MacKenzie Bezos finalized their divorce Friday to the tune of a $38-billion settlement, Bloomberg News reported.

Under the agreement, MacKenzie Bezos, 49, will receive approximately 19.7 million Amazon.com shares, giving her a four percent stake in the company valued at $38.3 billion, and landing her at 22nd on the Bloomberg Billionaires Index, the news service said.

A judge in Washington state's King County finalized the divorce. Jeff Bezos, 55, will retain a 12 percent stake and remain the world's richest man.

Amazon CEO Jeff Bezos and wife MacKenzie Bezos, pictured here in February 2017, finalized their divorce at $38 billion

In January, Bezos his wife announced their divorce after 25 years of marriage and the revelation by the National Enquirer that he had been having an affair with a former news anchor, Lauren Sanchez (pictured)

MacKenzie Bezos, a novelist, has said she would give all of her stake in The Washington Post and the space exploration firm Blue Origin to her husband as well as voting control of her remaining Amazon stock.

She has also promised to donate half her fortune to charity, joining the ranks of the world's ultra-wealthy philanthropists as a signatory of the Giving Pledge.

The personal life of Jeff Bezos was thrust into the spotlight with the announcement in January that he and his wife were divorcing after 25 years of marriage and the revelation by the National Enquirer that he had been having an affair with a former news anchor, Lauren Sanchez.

Jeff and MacKenzie Bezos married in 1993 and have four children. Jeff Bezos founded Amazon in their Seattle garage in 1994 and turned it into a colossus that dominates online retail.

Last Month, it was reported that Bezos spent around $80 million on three apartments at 212 Fifth Avenue that overlook Madison Square Park that could be for him and Sanchez.

Jeff and MacKenzie Bezos married in 1993 and have four children. Jeff Bezos founded Amazon in their Seattle garage in 1994 and turned it into a colossus that dominates online retail (pictured in 2003)

The billionaire's pricey purchase is said to include a three-floor penthouse apartment, as well as the two units directly below it, according to the Wall Street Journal.

An appraiser told the newspaper the deal would likely be one of the priciest real estate transactions in Manhattan this year.

Lauren Sanchez and her husband Patrick Whitesell filed for divorce in April and neither sought spousal support. They also shared that they wanted joint custody of their kids.

Lauren Sanchez and her husband Patrick Whitesell filed for divorce in April and neither sought spousal support

The pair were married for 14 years and have two children together. She also has an 18-year-old son from a previous relationship.

Both Bezos and Sanchez said their marriages were over before the affair came to light but have never specified exactly when it started.

Text messages showed they were speaking romantically as far back as April last year.

After their affair became public, the pair vowed not to see one another but remained in touch and stayed 'very much in love' according to friends.