During this period , there was two main factions in the Republic of Somalia who provoked an all out war which became known as the Somalian Civil War . One of the factions was led by Ali Mahdi Mohamed , who became president ; and the other , by the warlord Mohammed Farah Aidid .