Somalia’s President Hassan Sheikh Mohamud has accepted defeat in elections, handing power to ex-Prime Minister Mohamed Abdullahi Farmajo.
Mr Farmajo beat him in the second round of voting, and the president pulled out of the third and final round.
MPs elected the president in a heavily guarded aircraft hangar in Mogadishu, as the rest of the country is not safe.
Traffic was banned and a no-fly zone imposed over the capital to prevent attacks by militant Islamists.
Despite this, suspected militants fired mortar rounds close to the venue on Tuesday night.
Somalia, marred by religious and clan conflict, has not had a one-person one-vote democratic election since 1969.
That vote was followed by a coup, dictatorship and conflict involving clan militias and Islamist extremists.
Share the post "Somalia: Mohamed Abdullahi Farmajo new president"