In 1542, the inhabitants of Pegli and the neighbouring communities left their home on the Ligurian coast in the wake of the Lomellini, a powerful trading family from Pegli and Genoa, and settled on the island of Tabarca off the coast of Tunisia, where they dived for coral until 1735. When coral mining and thus the tribute to the Lomellini continued to decline and was no longer profitable for all sides, and the conflicts with the Muslims intensified, King Charles Emmanuel III of Savoy, on the initiative of the Piedmontese architect Augusto de la Vallée, made the offer to settle the still uninhabited island of San Pietro. A part of the Tabarchini under the leadership of Agostino Tagliafico accepted the offer and settled on the island off Sardinia in 1738. In honour of the king, they named the new place Carloforte ("Charles the Strong"). Over time, other emigrant families arrived directly from Liguria and helped to strengthen the small, thriving community.
In 1798, Carloforte was attacked by pirates and around 900 inhabitants were captured and held as slaves in Tunis; one of them became the mother of Bey Ahmad I al-Husain. After five years, they were finally ransomed. The parts of the old city walls and the fortress that still remain today are evidence of this barbarian invasion.
The population, also known as the Tabarchines because of their origins, united the towns of Carloforte on the island of San Pietro and the neighboring community of Calasetta on the nearby island of Sant'Antioco. A smaller part of the emigrants from Tabarca headed towards the Spanish coast to Alicante and founded the town of Nueva Tabarca there. Although this colony retained some of the original surnames, it was absorbed by the Spanish-speaking community in terms of language and customs. The Tabarchini are scattered all over the world, mainly in Genoa, on the Ligurian coast, in Gibraltar, in Boca near Buenos Aires and in other port cities. They are estimated to number 18,000 people in total.