Due to the volatile security situation in the country, 14,000 clan elders and prominent regional figures first elected 275 members of parliament and 54 senators a year ago. Former president Sharif Sheikh Ahmed was third with 49, and Prime Minister Omar Abdirashid Sharmarke was fourth with 37.
The election proceeded in a heavily guarded airport hangar in the capital city, where 329 newly elected MPs took part in two rounds of voting to pick the country's next president from an original list of 22 candidates.
Farmajo, born in 1962, was prime minister from 2010 to 2011, when he slashed the size of the cabinet and was credited with appointing technocrats.
MOGADISHU, Somalia- The first round of the presidential election in the Somali capital of Mogadishu has concluded, as scores showed the caretaker President leading the ballot, Garowe Online reports.
Many in Somalia anticipate a highly contested race which likely will see a further round between the two candidates with the greatest number of votes.
The indirect elections took place in Mogadishu's secure airport compound after months of delays and threats from Islamist insurgents bent on derailing the process.
He agreed to step down in "the interest of the Somali people and the current situation in Somalia".
"This is the beginning of unity for the Somali nation, the beginning of the fight against Shabaab and corruption ..." a triumphant Farmajo said after being declared the victor in a long, drawn-out election process in the conflict-wracked nation.
Florida House Democrats Oppose President Trump's Supreme Court Nominee
Smith also says the vacancy caused by the death of Justice Antonin Scalia almost one year ago should have been filled long ago. Schumer said he asked Gorsuch "straightforward and direct questions that would demonstrate whether he could clear that bar".
Al-Shabab has a presence in much of the southern third of the country and has carried out many attacks in Mogadishu.
Mohamud held a slight lead over Farmajo after an initial round of voting Wednesday that included a field of 21 candidates. He also worked in the United States with the Somali foreign affairs ministry. Farmajo, however, has a United States passport.
Somalia began to fall apart in 1991, when warlords ousted dictator Siad Barre and then turned on each other.
Somalia's instability landed it among the seven Muslim-majority countries affected by President Trump's executive order on immigration, even though its government has been an increasingly important partner for the USA military on counterterrorism efforts, including drone strikes against al-Shabab leaders.
Somalia, marred by religious and clan conflict, has not had a one-person one-vote democratic election since 1969.
He eventually became a US citizen, served as equal employment commissioner for the NY state Transportation Department and wrote a master's thesis titled: "U.S".
The activist organization Transparency International rated Somalia the most corrupt country on earth.