Somalia has joined the East African Community (EAC) in a move intended to boost economic growth in the country following three decades of war.
President Hassan Sheikh Mohamud said joining the regional trade bloc was a “beacon of hope” for Somalia.
He said it offered “hope for a future of opportunities and prosperity”.
Somalia has been wracked by conflict since 1991 and many parts of the country are controlled by jihadist group al-Shabab.
Some of its neighbours have sent troops to help fight the Islamist group, which is affiliated to al-Qaeda.
The decision to admit Somalia was made after a meeting of heads of member states in Arusha, Tanzania.
Somalia’s integration into the EAC is a huge step for the Horn of Africa nation, but it did not come easy.
Months of lobbying to join the regional bloc were met by serious questions and hesitation by some member states.
EAC citizens can move freely within member states, so some fear that it could be easier for al-Shabab fighters to move around the region.
To be admitted into the EAC, new countries are supposed to show that they adhere to the principles of good governance, democracy, the rule of law, human rights and social justice.