The history of Tripoli, one of the oldest cities on the Mediterranean coast, is rooted in deep antiquity. Its foundation and development are inextricably linked with maritime trade and the succession of great civilizations that have left their mark on the city's appearance.
The city was founded by the Phoenicians in the 7th century BC and initially bore the name Oea. It emerged as one of three trading posts on the coast, which, together with Sabratha and Leptis Magna, formed the region known to the Greeks as "Tripolis", meaning "three cities". Over time, the name Tripoli became attached specifically to Oea. Its advantageous geographical position on a rocky promontory, forming a convenient harbor, made it a vital point on maritime routes.
A key role in the rise of Tripoli was played by its strategic location and trade. After the Phoenicians, the city passed under the authority of Carthage, and following its fall, became part of the Roman Republic. During the Roman period, Tripoli reached its zenith, becoming a flourishing provincial center and an important port for exporting goods from African lands to Europe. In subsequent centuries, the city was part of the Byzantine Empire, and in the 7th century, it was conquered by the Arabs, which determined its future cultural and religious character.
The economy of early Tripoli was based on maritime trade, as the city served as a true crossroads of civilizations where the commercial interests of Europe and North Africa intersected. Its rich past has left a noticeable mark on the architecture. One of the most famous monuments of the Roman era surviving to this day is the Arch of Marcus Aurelius, erected in 163–164 AD in honor of the victories of his co-emperor Lucius Verus. With the arrival of the Arabs, the city became an important Islamic center, reflected in the construction of numerous mosques, the oldest of which, the An-Naqa Mosque, presumably dates back to the 10th century.