Bill and Melinda Gates have announced that they are divorcing.

The Microsoft co-founder and his wife, who launched the world’s largest charitable foundation, said they would continue to work together at the Bill & Melinda Gates Foundation.

In identical tweets, they said they had made the decision to end their marriage of 27 years.

“We have raised three incredible children and built a foundation that works all over the world to enable all people to lead healthy, productive lives,” they said in a statement.

“We ask for space and privacy for our family as we begin to navigate this new life.”

In her 2019 memoir, The Moment of Lift, Mrs Gates wrote about her childhood, life and private struggles as the wife of a public figure and stay-at-home mother with three children.

She won Mr Gates’ heart after meeting at a work dinner, sharing a mutual love of puzzles and beating him at a maths game.

The couple’s sprawling Seattle-based foundation is easily the most influential private foundation in the world, with an endowment worth nearly 50 billion dollars.

It has focused on global health and development and US education issues since incorporating in 2000.

The couple were married in 1994 in Hawaii. They met after she began working at Microsoft as a product manager in 1987.

Last year, Mr Gates, formerly the world’s richest person, said he was stepping down from Microsoft’s board to focus on philanthropy.

Mr Gates was Microsoft’s CEO until 2000 and since then has gradually scaled back his involvement in the company he started with Paul Allen in 1975.

He transitioned out of a day-to-day role in Microsoft in 2008 and served as chairman of the board until 2014.