Saudi Arabian artificial intelligence company Humain has invested $3bn into Elon Musk’s xAI, deepening ties between the world’s richest man and the kingdom as it pushes to become a global AI powerhouse.The investment was part of xAI’s $20bn funding round, which completed shortly before the startup’s acquisition by Musk’s space exploration company, SpaceX. Humain became a “significant minority shareholder” with the investment, the company said in a statement on Wednesday. Its holdings will convert into SpaceX shares.The deal strengthens Musk’s relationship with Saudi Arabia, which has made AI a central plank of its efforts to diversify its economy away from oil. Humain was formed in 2025, with backing from the country’s trillion-dollar sovereign wealth fund, Public Investment Fund, and has been on a dealmaking spree to build up the infrastructure and compute capacity required to train and run AI models.The tie-up also supplies xAI, which operates the X social media platform and the Grok chatbot, with a ready customer. Grok trails OpenAI’s ChatGPT and Anthropic PBC’s Claude in adoption, and xAI is still building out its commercial footprint. Musk’s SpaceX combined with xAI in a deal that valued the combined entities at $1.25tn earlier in February.Humain and xAI announced a 500-megawatt data center in Saudi Arabia last November, along with plans for Saudi Arabia to roll out xAI’s Grok models.“Together, these initiatives deepen long-term alignment and extend Humain’s role from strategic partner to leading global shareholder in xAI,” Humain said in Wednesday’s statement.Humain has also invested in AI video-generation startup Luma AI and formed a joint venture with chipmaker Advanced Micro Devices Inc and Cisco Systems Inc to build up data center capacity in Saudi Arabia.Sovereign wealth funds in Kuwait, Qatar, Saudi Arabia and the United Arab Emirates control more than $4tn, and many of these oil-rich countries have made AI central to their economic diversification. That’s made them key players in an industry poised to reshape many aspects of everyday life.The Qatar Investment Authority invested in Anthropic in September, coming in as a “significant” investor in a $13bn financing round that valued the company at $183bn. Meanwhile, Abu Dhabi’s MGX was a co-lead investor in the firm’s latest round. That followed a run of high-profile bets from MGX, which is racing toward a target of more than $100bn in assets under management.