MOGADISHU: Turkish President Recep Tayyip Erdogan arrived in war-torn Somalia on Sunday amid tight security, a rare visit by a foreign leader to the war-torn nation.

Hundreds of soldiers and police officers had shut down much of the capital’s streets, where on Thursday five people were killed in a suicide attack on a hotel housing the Turkish delegation in Mogadishu.

Somalia’s Shabab rebels, who are fighting to overthrow the country’s internationally-backed government, said they carried out the bombing, the latest in a string of attacks by the group against high-profile targets in Mogadishu.

Erdogan praised the “major developments” seen in Somalia, after he was welcomed at the new Turkish-renovated airport by his counterpart, Somali President Hassan Sheikh Mohamud.

Turkey is a major investor in Somalia, including carrying out a series of major construction projects in a city left devastated by over two decades of war, and now undergoing a major building boom.

Mohamud praised Turkey’s “prominent, exemplary role” in Somalia, where unlike most nations, Turkish citizens live and work outside heavily fortified compounds.

“Turkey did not hold back, waiting for stability before it invested. Instead, it invested to achieve it,” Mohamud said.

“Where other international partners chose to plan their interventions from elsewhere, Turkey put its people on the ground in Somalia.”