The Somali government has been rocked by repeated leadership rows that have, ever since it was formed in 2004, undermined its mandate to write a new constitution and reconcile the war-torn country.
"The Security Council and donors are losing patience with the political tensions within the Somalia leadership," Ban said in Addis Ababa during a special African Union summit on the continent's conflicts.
Ban however hailed the recent offensive by the African Union troops and Somali government forces against the al- Qaeda inspired Shabaab insurgents in the capital Mogadishu.
"Now that there has been progress on the security track, the transitional federal institutions must deliver on the political and development tracks," he said.
"The TFIs must show real progress on key tasks such as constitution making, political outreach, reconciliation, the provision of basic services and improvement in security," he added, referring to Somalia's Transitional Federal Institutions.
The mandate of the Somali government expires in August but lawmakers have unilaterally extended their term.
The government has been unable to exert authority across Somalia, which has been without a central administration since a bloody civil war erupted in 1991.