Mohamed Abdullahi Farmajo, the former Prime Minister has been elected President of Somalia.
Farmajo was declared winner after beating rivals in the second round of vote and was sworn into office immediately.
He got 184 votes, to beat Hassan Sheikh, who had 97 and Sheikh Shariff, 46.
Incumbent Hassan Sheikh Mohamud conceded just when the process was about to enter a final round.
Somalia has the culture of electing a new President at each election.