According to Josephus, Jews inhabited Alexandria since its founding, and most historians agree that Jews inhabited the city since at least the beginning of the third century BCE. Under Ptolemaic rule, a separate section of the city was assigned to the Jew, so that they might not be hindered in the observance of their laws by continual contact with the pagan population. This Jewish Quarter was one of the five sections of the city, each named after a letter of the greek alphabet, with the Jewish quarter being named Delta. During this time, the Jews in Alexandria enjoyed a greater degree of political independence and prominence, serving as the city's moneylenders, premium merchants and alabarchs. The Jewish ethnarchs were also established during this time, along with a council of 71 elders. According to Strabo, the ethnarch was responsible for the general conduct of Jewish affairs in the city, particularly in legal matters and the drawing up of documents. The city also established a large Bet Din known as the "archion". The Great Synagogue of Alexandria was also established during this time. During the period of the Second Temple the Jews of Alexandria were represented in Jerusalem by a sizeable community. During Herod’s reign several prominent Alexandrian Jewish families lived in Jerusalem. Such as Simeon the Just who was appointed high priest by Herod. Alexandria's Jewish population served as secular public officials and as soldiers for the Ptolemaic army. Rich Jews occasionally held the office of alabarch, such as Alexander the Alabarch. However, Ptolemy VII, was hostile towards the Jew because when he strove to wrest the throne of Egypt from Cleopatra, the Jews, led by the general Onias, fought on the side of Cleopatra. During the Maccabean Revolt, an Alexandrian Jew probably wrote 2 Maccabees which defends Hellenism and criticizes the Seleucids as opposed to 1 Maccabees which was written in Judea and criticizes the entire Hellenistic ideology.
Roman period
Following the Roman conquest of Egypt, intense Antisemitism became widespread throughout Alexandria's non-Jewish populations. Many viewed Jews as privileged and isolationists. This sentiment lead to the Alexandrian Pogrom in 38 CE led by the Roman governor, Aulus Avilius Flaccus. Many Jews were murdered, their notables were publicly scourged, synagogues were defiled and closed, and all the Jews were confined to one quarter of the city. Riots again erupted in 40 CE between Jews and Greeks. Jews were accused of not honouring the emperor and Jews were angered by the erection of a clay altar and destroyed it. In response, Caligula ordered the erection of a statue of himself in the Temple of Jerusalem. Philo wrote that Caligula "regarded the Jews with most especial suspicion, as if they were the only persons who cherished wishes opposed to his". Following the First Jewish–Roman War, many Roman's in Alexandria questioned the loyalty of the city's jewry. Violence occurred when in 66 CE the Alexandrines had organized a public assembly to deliberate about an embassy to Nero, and a great number of Jews came flocking to the amphitheater. When the Alexandrines saw the Jews they attacked them, killing the majority of the Jews and those who were captured were burned alive. Following this event was the second Alexandrian pogrom. Tiberius Julius Alexander, the governor of Alexandria was able to calm the riots. However, most Jews saw the rising Antisemitism and immigrated out of the city, mostly to Rome along with other Mediterranean and North African cities. In 115 CE the remaining Jewish population participated in the Kitos War, leading to the economic situation of the community being undermined, and its population diminished.
Byzantine period
By the beginning of the Byzantine era, the Jewish population had again increased, but in 414 Cyril expelled Jews from the city. According to contemporary Christian historian Socrates Scholasticus, the expulsion was a response to a Jewish-led massacre against some Christians. Historians are divided on whether the expulsion was wholesale or just against those who had perpetrated the violence.
Arab period
Following the Muslim conquest of Egypt starting in 641, Jews were allowed to return to the city, according to some Arab sources, the city has some 400,000 around the time of the conquest. However, Benjamin of Tudela who visited the town in about 1170 and speaks of only 3,000 Jews living in Alexandria. Nevertheless, throughout the Middle Ages, Alexandria had a small but significant community of Jewish Rabbi's and scholars, the community is mentioned in several documents in the Cairo Genizah some of which relate to, Alexandrian Jewry's reaction to the controversial Sar Shalom ben Moses. During the 12th century, Aaron He-Haver ben Yeshuah Alamani served as the community's spiritual leader. During the Arab period, Alexandrian Jewry kept a close relationship with other Egyptian communities in Cairo, Bilbeis, El Mahalla El Kubra as well as several others. It was during this time that Alexandria had two synagogues, one of which was called "the small synagog of Alexandria". The Jews of Alexandria were engaged in the international trade centered in their city, and some even held government posts.
During World War I many Jews living in the Land of Israel were exiled to Alexandria under Ottoman rule. In 1937, 24,690 Jews lived in Alexandria. Following the establishment of the State of Israel 1948, and the ensuing Six-Day War, almost all of Egypt and Alexandria's Jewish population were expelled from the country and immigrated to Israel. As of 2017, only 12 Jews currently live in Alexandria. In February of 2020, 180 Jews from Europe, Israel and the United States arrived in Alexandria to attend religious ceremonies at the historic Eliyahu Hanavi synagogue, which was renovated by the Egyptian government as part of a program to protect Jewish heritage sites.