Linda Yaccarino, the boss of Elon Musk's social media site X, has announced she is stepping down after two years.

Her departure comes at a time of tumult for the platform, which was taken over by Musk's artificial intelligence (AI) venture, xAI, in March, and has been in the spotlight for antisemitic posts churned out by its AI chatbot, Grok.

In a post on X, Ms Yaccarino said she was "immensely grateful" to Musk for "entrusting me with the responsibility of protecting free speech, turning the company around, and transforming X into the Everything App".

Musk posted a brief reply, saying only: "Thank you for your contributions."

The BBC has approached X for comment. It is not clear what sparked the decision, or whether there has been any break down in the relationship between the two leaders.