Barrow was then sworn in as President of the Gambia at the Gambian embassy in Dakar, Senegal, on 19 January 2017. On the same day, military forces from Senegal, Nigeria and Ghana entered the Gambia in an ECOWAS military intervention involving land, sea, and air forces to compel Jammeh to leave. The military forces of the Gambia did not oppose the intervention, which only met with isolated minor clashes near Jammeh's hometown of Kanilai. ECOWAS halted the incursion after only a few hours and gave Jammeh his last chance to step down. On 21 January, Jammeh left the Gambia for an ECOWAS-arranged exile, paving the way for the transition of power.