Burkina Faso, Mali and Niger, all ruled by military juntas, have signed a security pact forming the Alliance of Sahel States. Beset by Islamist terrorism, the three countries have pledged to help each other in the event of a rebellion or external attack. The Economic Community of West African States has recently threatened military intervention in Niger if democracy is not restored.