 He was previously a Prime Minister of Somalia from November 2010 until June 2011 and is the founder and Chairman of the Tayo Political Party.He became the President of Somalia after winning in the 2017 Somali presidential election with 184 votes out of a total of 329 by members of the Somali Parliament after defeating former president Hassan Sheikh Mohamud.Mohamed was born in Mogadishu.