Somali authorities blocked main roads in the capital and barred vehicles from driving near the secure airport compound on Tuesday in a security lock down a day before parliament convenes for a presidential election.
After months of delays, 329 newly sworn-in members of parliament will on Wednesday choose whether to back President Hassan Sheikh Mohamud for a second term, or one of 21 rivals.
Rival candidates have accused each other of vote-buying, a practice in past votes Western donors have sought to stamp out.
Diplomats say corruption continues to hamper efforts to rebuild after years of conflict, while the government is also battling terrorism.
“Police forces will secure the election scene and streets, and the vote will take place peacefully as planned,” Mohamed Sheikh Haamud, Somalia’s police commander, told reporters in the capital, where pedestrians walked in quiet streets.
Presidential candidates have promised to improve security and the economy.
Until now, a construction boom in the bombed out capital has yet to spread far across the rest of the nation, where a severe drought is threatening a new food crisis.
The airport in Mogadishu, secured by African peacekeeping force Amisom and home to UN offices and foreign embassies, is the safest site in the capital.
Al Shabaab, which once rule most of Somalia and wants to impose its strict interpretation of Islam on the nation, regularly launches attacks in Mogadishu but its area of control has been increasingly reduced to smaller pockets of countryside.
“All those involved in the election, directly or indirectly are apostates,” al Shabaab spokesman Sheikh Ali Mohamud Rage told Reuters, saying the group would take “tough measures” against those involved and accused foreigners of guiding the vote.
The government of the aid-dependent nation and its Western backers dropped an initial plan to give each adult a vote because of the challenge of securing national polling stations.
Instead, about 14,000 clan elders and regional figures chose the 275 members of the lower house of parliament and 54 members of senate. Those lawmakers will pick the president on Wednesday.