Sfax (s(@)ˈfaeks ; Ṣafāqis, ˈsʕfaːqəs) is a city in Tunisia, located southeast of Tunis. The city, founded in AD 849 on the ruins of Berber Taparura, is the capital of the Sfax Governorate (about 955,421 inhabitants in 2014), and a Mediterranean port. Sfax has a population of 330,440 (census 2014). Its main industries include phosphate, olive and nut processing, fishing (it's the largest fishing port in Tunisia) and international trade. The city is the second-most populous in the country after the capital, Tunis.
Present-day Sfax was founded in AD 849 on the site of the Berber town of Taparura. The modern city has also grown to cover some other ancient settlements, most notably Thenae in its southern suburb of Thyna.
By the end of the 10th century, Sfax had become an independent city-state. The city was conquered by Roger II of Sicily in 1148 and occupied until it was liberated in 1156 by the Almohads, and was briefly occupied by European forces again, this time by the Spanish, in the 16th century, before falling into Ottoman hands. Sfax became an integral base of the Barbary piracy, prompting an unsuccessful invasion by Venice in 1785.
Abou Yahya Abou Bekr finally re-established Hafsid unity and recaptured Kerkennah from the Christians in 1335. The peace returned to the country was only disturbed by rare episodes, the most lasting of which began with the price of Sfax by the dissident brothers, Ahmed and Abdelmalèk ben Makki.
Towards 1370, following the arrival of Caliph Abdul-Abbbas, Sfax returned under the Hafside era.
After more than three centuries which had seen the preponderance of the Hafsids be maintained, the conflict between the Turks and the Spaniards would precipitate the fall of their dynasty. In 1534, the privateer Barberousse enters Tunis, proclaims the decline of the Hafsids and effortlessly reunites the towns of the coast and among them the town of Sfax.
The founder of the new dynasty, Hussein, gave the country unquestionable economic prosperity.