France, the former colonial power, and Chad's northern neighbour Libya have both become involved at various times throughout the civil war. By the mid-1990s the civil war had somewhat stabilised, and in 1996 Idriss Déby, a northerner, was confirmed president in Chad's first democratic election. In 1998 an armed rebellion began in the north, led by President Déby's former defence chief, Youssouf Togoimi. A Libyan peace deal in 2002 failed to put an end to the fighting. In 2003, conflict in the neighbouring Darfur region in Sudan leaked across the border into Chad. Refugees from Sudan were joined by Chadian civilians who were trying to escape rebel violence and eventually filled the camps. It was clear that Chad's rebels received weapons and assistance from the government of Sudan. At the same time, Sudan's rebels got help from Chad's government. In February 2008, three rebel groups joined forces and launched an attack on Chad's capital, N'Djamena. After launching an assault that failed to seize the presidential palace, the attack was decisively repulsed.