Somalia's Supreme Court ruled on Thursday that the extension of President Hassan Sheikh Mohamud's term by one year was "unlawful," according to the source report. The extension had sparked violent clashes with the opposition.

The court said constitutional amendments passed by parliament in March did not apply to his current term, and that he should have left office in May. Mohamud has argued the extension was legal under those amendments. Opposition parties and regional leaders boycotted the vote on them.

His government had declared a "transition period" giving him an extra year to prepare for the first nationwide democratic elections, which are due in April and May 2027.

Late Wednesday, Mohamud announced he was dismissing Chief Justice Bashe Yusuf Ahmed and appointing a replacement. The report says there were unconfirmed reports that Ahmed was under arrest on Thursday. The presidency's statement cited "concerns... about the need for an efficient and fair judiciary." The court rejected the dismissal in a separate statement, calling it "null and void" and saying it was designed "to obstruct the administration of justice" in the constitutional case.