Born in Jalalaqsi in the central Hiran region, Mohamud studied at Somalia's national university before civil war broke out in 1991.
He had acquired his primary education in his home town before continuing secondary education in the capital Mogadishu.
He attended and received his first higher education qualification from the National Polytechnic College, an affiliate of the Somali National University in 1981, earning Bachelor of Technology.
In 1986 he proceeded to India where he studied at Barkatullah University (ex-Bhopal University) until 1988, earning a Master of Technical Education.
Somalia's new president Hassan Sheikh Mohamud, who was elected after a marathon vote by lawmakers on Sunday, is a former academic and peace activist whose first administration was dogged by claims of corruption and infighting.
Born in 1955, Mohamud was a fierce critic of the incumbent Mohamed Abdullahi Mohamed, better known as Farmajo, since the latter won the 2017 presidential vote, beating the ex-university professor's bid for re-election.