Capital that's untidy made smart (9)
I believe the answer is:
mogadishu
'capital' is the definition.
(capital of Somalia)
I can't explain the rest of the clue.
Can you help me to learn more?
(Other definitions for mogadishu that I've seen before include "foreign capital" , "Somali city" , "Capital of Somalia" .)