Elon Musk and Talulah Riley, the British actress, have settled the divorce case that will end their second marriage to each other.

The 44-year-old tech billionaire and Pride & Prejudice film star first married in 2010, but divorced two years later. At that time a wistful Mr Musk told Ms Riley that he would still "love her forever".

In 2013 the couple walked down the aisle again, but the honeymoon period did not last long.

On New Year's Eve 2014 Mr Musk, who is worth an estimated $13.7 billion, filed for divorce.

At that time the couple said in a joint statement that Mr Musk would give Ms Riley $16 million in cash, with the remainder of the property to be be split up in accordance with their pre-nuptial agreement.

Mr Musk removed his divorce petition seven months after filing it.

But in March of this year Ms Riley, 30, filed the papers in a Los Angeles Superior Court that would finally separate them. The couple said in a joint statement that they had been living separately for six months.

This week the couple settled the divorce, according to the celebrity news site TMZ. The exact financial arrangements of the settlement have not been made public.