Incumbent President Hassan Sheikh Mohamud held a slight lead over former prime minister Mohamed Abdullahi Farmajo, 88 votes to 72. Former president Sharif Sheikh Ahmed was third with 49, and Prime Minister Omar Abdirashid Sharmarke was fourth with 37.
All went into the second round of voting.
This Horn of Africa nation is trying to put together its first fully functioning central government in a quarter-century. Years of warlord-led conflict and al-Shabab extremist attacks, along with famine, have left this country of about 12 million people largely shattered.
Fears al-Shabab attacks limited the election to the lawmakers instead of the population at large. The voting was being streamed online .
Also Read
Across Mogadishu, Somalis gathered around TV screens at cafes and homes, eagerly watching the vote.
"I hope they will not choose bribes over the interest of the people." said Ahmed Hassan, a 26-year-old university student, who sat with dozens of men in front of a large television screen. "We need an honest leader who can help us move forward."
Somalia's instability landed it among the seven Muslim-majority countries affected by President Donald Trump's executive order on immigration, even though its government has been an increasingly important partner for the US military on counterterrorism efforts, including drone strikes against al-Shabab leaders.
In a sign of the dangers that remain in Mogadishu, two mortar rounds fired by suspected extremists late Tuesday hit near the election venue.
Disclaimer: No Business Standard Journalist was involved in creation of this content