The French Forces remained present in Djibouti when the territory gained independence, first as part of a provisional protocol of June 1977 laying down the conditions for the stationing of French forces, constituting a defense agreement. A new defence cooperation treaty between France and Djibouti was signed in Paris on 21 December 2011. It entered into force on 1 May 2014. By that treaty and its security clause, France reaffirmed its commitment to the independence and territorial integrity of the Republic of Djibouti. As well before independence, in 1962, a French Foreign Legion unit, the 13th Demi-Brigade of the Foreign Legion (13 DBLE) was transferred from Algeria to Djibouti to form the core of the French garrison there. On 31 July 2011, the (13 DBLE) left Djibouti to the United Arab Emirates.