A month earlier , Ethiopian forces , with logistical support from the United States , entered Somalia to drive out the Union of Islamic Courts ( UIC ) , a loose coalition of Islamists which had taken control of the capital , Mogadishu , and large parts of the south .