Following the 1 December 2016 elections, the elections commission declared Adama Barrow the winner of the presidential election. Jammeh, who had ruled for 22 years, first announced he would step down after losing the 2016 election before declaring the results void and calling for a new vote, sparking a constitutional crisis and leading to an invasion by an ECOWAS coalition. On 20 January 2017, Jammeh announced that he had agreed to step down and would leave the country.