The illustration is a synagogue off the coast of Tunisia, on an island called Djerba. It was partially built with stones that were brought from Jerusalem, and is still visited by North African Jews.
There were likely Maghrebi Jews living in ancient Carthage (the Carthaginians were also a Semitic people). Simon of Cyrene, mentioned in three of the Gospels as a man chosen to help carry the Cross on the way to the Crucifixion, was Maghrebi: Cyrenaica was a Greek colony in eastern Libya. The Roman general Titus deported Jews to Mauretania (Northern Africa) after the Jewish-Roman War of 70CE, adding to the Jewish population.
The Vandals established kingdoms in Northern Africa early in the 5th century. They were tolerant of the different peoples in their territories. This allowed the Jewish population to grow and thrive, so much so that the Christian churches decided to curtail their influence with restrictive laws. Moreover, when Justinian I's armies overthrew the Vandals, he issued an edict that lumps Jews with Arians and heathens.
Muslim rulers tolerated Jews, but when the Visigothic king Sisebut invaded the Iberian Peninsula and persecuted those he found there, many Iberian Jews fled to Northern Africa. The influx of Sephardic Jews eventually changed the local customs of the Maghrebi Jews to a more Sephardic manner. Fez in Morocco and Tunis in Tunisia became important Sephardic rabbinical centers right up until the 20th century, when many Jews emigrated to Israel, France, and Canada.
Once again I have found that I have referred to Vandals a handful of times without ever explaining who they really were. Let's fill in that gap tomorrow.