Al-Shabaab began as the armed wing of the Islamic Courts Union (ICU), which later splintered into several smaller factions after its defeat in 2006 by Somalia's Transitional Federal Government (TFG) and the TFG's Ethiopian military allies.