Following the adoption of a new constitution in 2010 and presidential elections a year later, Mahamadou Issoufou was elected as the first president of the Seventh Republic; he was then re-elected in 2016. The constitution also restored the semi-presidential system which had been abolished a year earlier. An attempted coup against him in 2011 was thwarted and its ringleaders arrested. Issoufou's time in office has been marked by numerous threats to the country's security, stemming from the fallout from the Libyan Civil War and Northern Mali conflict, a rise in attacks by AQIM, the use of Niger as a transit country for migrants (often organised by criminal gangs), and the spillover of Nigeria's Boko Haram insurgency into south-eastern Niger. French and American forces are currently assisting Niger in countering these threats.