The old town is built on the cliff face of the table-top Jebel Dyr mountain. El Kef was the provisional capital of Tunisia during World War II. It was the command centre of the FLN (Front de Libération Nationale) during the Algerian War of Independence against the French in the 1950s. It has a population of 45,191 (2004 census).