To know what’s the state of Somalia, how Somalia became what it has become, to learn how religious-based terrorism entered the country, few articles are more instructive than this one:

http://www.theeastafrican.co.ke/magazine/foreign-factor-in-the-siege-of-Somalia/434746-4246234-hu28v0z/index.html