Zawila (also spelled Zuila, Zweila, Zwila, Zawilah, Zuwayla or Zuweila) is a village in southwestern Libya. During the Middle Ages, it was the capital of the Fezzan region. When Uqba ibn Nafi passed through the area in 46 A.H. (666/67 CE), there was no city there. Zawila was settled probably in the early 8th century. It very quickly became the chief town of the region.