Al Qaeda in the Arabian Peninsula (AQAP) emerged in late 2002 as a force in Saudi Arabia, orchestrating a spectacular attack in Riyadh in 2003. This was followed by the advent of Al Qaeda in Iraq (AQI) in 2004.