According to the Wall Street Journal, the Kingdom of Saudi Arabia is set to record $20 billion profit off their $2.9 billion investment in Lucid.

The Saudi Public Investment Fund will own over 60% of the company.

The single biggest financial beneficiary of the recent U.S. electric-vehicle startup boom is an unlikely candidate: the world’s largest exporter of oil.

The kingdom of Saudi Arabia stands to record a profit of nearly $20 billion on a $2.9 billion investment in Lucid Motors Inc., a San Francisco Bay Area electric-car maker that is set to list publicly after it completes a merger with a special-purpose acquisition company Friday. The Saudi Public Investment Fund will own over 60% of the company, which is expected to have a market capitalization of about $36 billion based on the SPAC’s current share price.

The listing represents the fruits of a well-timed 2018 investment in Lucid when it was struggling for survival. Its Saudi lifeline came thanks to Mohammed bin Salman, the crown prince who was pushing his country’s Public Investment Fund to spend unprecedented sums on startups as part of a bid to diversify the country’s wealth away from oil.