Jewish life in Baghdad dates back to the city’s early centuries under the Abbasid Caliphs, when its proximity to older centers of learning like Sura and Pumbedita helped draw scholars and families alike. At different moments, Jews found opportunity in the city—as merchants, religious leaders, and craftsmen—but their position was never entirely secure. Periods of relative stability were often interrupted by new restrictions or outbreaks of violence, especially during times of political upheaval. By the nineteenth century, however, Baghdad’s Jewish community had grown into one of the most prominent in the region, deeply embedded in the city’s commercial and cultural life, even as the dramatic changes of the twentieth century would ultimately lead to its decline.

After the Mongol conquest of 1258, the Jewish community suffered massacres and forced conversions, particularly in 1333 and 1344, though it recovered under subsequent rulers. By the 19th century, Baghdad's Jewish merchants dominated trade with India, and leading families such as the Sassoons emigrated to Bombay and Calcutta after persecution by the Ottoman governor Dawud Pasha.

During the first half of the 20th century, the substantial Jewish community (probably exceeding 100,000 people) comprised between a quarter and a third of the city's population. Political changes in Iraq, culminating in the fall of the Ba'athist regime, led to the decline of the Jewish population in Baghdad as emigration increased.

Under the Abbasid Caliphs

According to Arab tradition, the town of Baghdad was founded in the middle of the eighth century by the Abbasid caliph Al-Mansur. According to the Jewish Encyclopedia, the fact that a Babylonian city named Bagdad is already mentioned in the Talmud (Ketubot 7b, Zebahim 9a) suggests that the Caliph Mansur only rebuilt and enlarged the older Persian City of Baghdad. That Baghdad was originally a Persian city is indicated by the name, which is thought to be of Persian origin. Situated on the left bank of the Tigris, the town was in close proximity to the two centers of Jewish spiritual life, Sura and Pumbedita. As the Caliph was anxious to see the population of his new residence increase, he offered no resistance to Jews settling there and forming a community. They became so numerous that one of the bridges over the Karkhâyâ in the western suburb was called Qanṭara al-Yahūd "Jews' Bridge" (Guy Le Strange, "Baghdad during the Abbasid Caliphate," p. 150), and Yaqut al-Hamawi mentions that the Jewish quarter, the Dar al-Yahūd, was in the neighborhood (iv. 1045).

The Jews were occasionally troubled by revivals of the restrictions on non-Moslems. These regulations were first renewed by Harun al-Rashid (786–809), who ordered that Jews and Christians should wear distinguishing marks on their clothing, refrain from riding on horseback, and suffer other similar humiliations. These restrictions were later relaxed, but were again imposed by Al-Mutawakkil (880), who went so far as to convert the synagogues into mosques. Jews did, however, hold state offices under Al-Mutadid (892–902).

As the seat of the caliphate, Baghdad quickly gained prominence. It was a home for Jewish learning; and a number of prominent individuals lived there. Aaron ben Samuel ha-Nasi of Babylon, the mystic of the ninth century, came to Italy from this city (Graetz, "History of the Jews," Hebrew transl., v., Appendix, p 46). Its importance at the time of the Geonim must not be underrated, as it is often mentioned at this time under the name of "Babylon" (). (On the name עדינה, see Steinschneider, "Polemische und Apologetische Literatur in Arabischer Sprache zwischen Muslimen, Christen und Juden" p. 293; idem, "Hebräische Bibliographie" xiii. 90; "Jewish Quarterly Review," xii. 115). Baghdad belonged rather to Pumbedita Academy than to Sura Academy, but the heads of the Jewish community in both places came to the Caliph's city in order to swear allegiance to the resh galuta or exilarch.Geiger, Wissenschaftliche Zeitschrift," v. 398; Grätz, "Geschichte der Juden," v. 479).

According to the Jewish Encyclopedia, the Jews of Baghdad were affected by the Karaite schism. Ishmael of Ukbara (c. 840) came from a place seven miles from the city; and Sahl ben Matzliah (eleventh century) preached publicly in the streets against Rabbinical Judaism. He was answered in the same way by Jacob ben Samuel,(Graetz, "History of the Jews," Hebrew transl., iii. 311) the founder of a new sect, was born in Baghdad in the ninth century.(Graetz, ib. iii. 508).

At the time of the Caliph al-Mutadid, the Jews of Baghdad fared well on account of the kind treatment accorded to them by the vizier 'Ubaid Allah ibn Sulaiman. The heads of the community were Joseph ben Phineas and his son-in-law, Natira (Graetz, ib. iii. 274). The gaon Aaron ibn Sargado (943–960) came from Baghdad, and it was here that his relative, Kasher ibn Abraham, was called upon to settle a dispute in which he had become involved (Graetz, ib. iii. 306, 308). About the year 950, the grammarian Dunash ben Labrat was in Baghdad; and in this city the gaons Hai, Kimui bar Rab Aḥai, and Yehudai bar Samuel were officials (דייני דבבא בבגדד) before going to Pumbedita. According to Hai (died 1038), the Baghdad Jews of his day were accustomed to say the 'Abodah of the Day of Atonement both at the morning and musaf service (Graetz, ib. iii. 166). It is also probable that the exegete and traveler Abraham ibn Ezra visited Baghdad between the years 1138 and 1140 (see his commentary to Exodus 25:18). Ibn Ezra's son Isaac, who probably came with him, and was baptized, wrote in Baghdad (1143) a poem in honor of another convert, Nathaniel Hibat Allah ("Kokbe Yiẓḥaḳ," 1858, p. 23; Graetz, "History of the Jews," Hebr. transl., iv., Appendix, p. 47).

In the twelfth century

During the twelfth century, the Jews of Baghdad attained again some measure of self-government. The calif Al-Muktafi appointed a wealthy man, Samuel ben Ḥisdai, exilarch in Baghdad. He gathered the taxes, paying a certain portion over into the state treasury; and all important appointments had to receive his sanction. Both Benjamin of Tudela and Pethahiah of Regensburg visited Baghdad, and have left interesting information regarding the Jews there. According to Benjamin, there were at his time in the city 23 synagogues, 1,000 Jewish families, and 10 yeshibot (rabbinical schools). According to Pethahiah, however, "At Baghdad there are three synagogues, besides that built by Daniel on the spot on which the angel stood on the brink of the river, . . . as is written in the Book of Daniel." Pethahiah adds: "The head of the academy has many servants. They flog any one not immediately executing his orders; therefore people fear him. . . . He is clothed in gold and colored garments like the king; his palace also is hung with costly tapestries like that of the king."

The most prominent heads of the yeshibot were at that time Ali and his son, Samuel. David Alroy studied under Ali at the time Ḥisdai was exilarch (Wiener, "Emek haBacha," pp. 27, 167; "Shebeṭ Yehudah," ed. Wiener, p. 50; Sambari, in Neubauer, "Medieval Jewish Chronicles," i. 123; Graetz, "History of the Jews," Hebrew transl., iv. 308). The reputation of Samuel seems to have spread far and wide; for we learn that Rabbi Moses of Kiev came from Russia especially to receive information from him (Epstein, in "Monatsschrift für die Geschichte und Wissenschaft des Judenthums," xxxix. 511, 512; Graetz, ib. iv. 44). It was this same Samuel who, in later years, was a determined opponent of Maimonides, and who made Baghdad for the time a very hotbed of anti-Maimonist intrigue (Graetz, ib. Appendix, p. 34). Maimonides' pupil, Ibn Aknin, had formed a plan of opening a school at Baghdad for the purpose of propagating his master's teachings. Maimonides, however, advised him against such an action, as he wished to spare him the opposition which he knew Ibn Aknin would encounter (Grätz, "Geschichte der Juden," vi. 362). Daniel, the son of Ḥisdai, followed his father in office: but he left no son; and though two of his cousins in Mosul pretended to hold office, the short-lived recrudescence of the resh galuta was at an end (Grätz, "Geschichte der Juden," vi. 460; Hebrew transl., iv. 459, Appendix, p. 59). The anonymous author of the Hebrew-Arabic Diwan published in "He-Ḥaluẓ," iii. 150 (MS. Bodleian 2424 and MS. in collection of E. N. Adler), who lived before the middle of the thirteenth century, traveled as far as Baghdad, where he met the head of the yeshiva ("Jewish Quarterly Review," xii. 115, 202).

In the thirteenth century

The Jews of Baghdad diminished largely in numbers and influence, not only because of the general movement of the Jews toward Europe and because of the Crusades, but also through the storming of the town by the Mongols. Arghun (1284–91), however, had a Jewish physician in Baghdad, Sa'ad al-Daulah, who was consulted in all financial matters by the sultan; but upon the death of Arghun, the position which the Jews had gained through Sa'ad al-Daulah was quickly lost, and the streets of the city flowed with Jewish blood (see "Revue Etudes Juives," xxxvi. 254).

In the fourteenth century Forced conversions took place in Baghdad in 1333 and 1344.

In the fifteenth century

With the fall of the Abbasid power the eastern caliphate went to ruin. Very little is known concerning the Jews of Baghdad during the following period, and we can only find a few notes here and there in the works of travelers who have passed through the place. In 1400 the city was besieged by Tamerlane, and many Jews who had taken refuge here from other villages perished (Jost, "Israelitische Annalen," 1839, p. 197).

In the seventeenth and eighteenth centuries

Pedro Teixeira, at the beginning of the seventeenth century, found in Baghdad 20,000 to 30,000 houses, of which 200 to 300 were inhabited by Jews. He says that they lived in a certain part of the town in which their "kanis" (synagogue) was situated. It was in the early Seventeenth Century, that the axis of Mesopotamian Jewry began to shift back towards Baghdad.

In the nineteenth century

At the beginning of the nineteenth century, was the richest banker in the city. He became involved in politics and went to Constantinople, where he exercised great influence as a court banker ("saraf bashi"). Armenian intrigues, however, occasioned his fall, and he was put to death between the years 1820 and 1826 at Adalia in Asia Minor (Franco, "L'Histoire des Israélites de l'Empire Ottoman," p. 132).

Jews were massacred in Baghdad in 1828.

The traveler J. J. Benjamin was in Baghdad in 1847, and tells us that the Jews at that time numbered 3,000 families and were living in happy circumstances. They were under a "Hakham Bashi" appointed by the Sublime Porte. Their dayyanim or rabbinical chiefs were , Elijah Obadiah, and Rabbi Abdola (Abdallah). Every male Hebrew of the community paid a tax which varied between 15 and 120 piasters per year. Raphael Kassin was Hakham Bashi, and next to him in rank was the Nasi, Joseph Moses Reuben. The yeshiva had then sixty pupils, who were in the charge of Abdullah ben Abraham Seumech.

Though the Jews inhabited a certain quarter of the city, to live in that quarter was not compulsory upon them. Of the nine synagogues which J. J. Benjamin mentions, eight were situated in one court; while the ninth was a large building, resting on sixteen columns, called "Bet ha-Keneset Sheik Isaac Gaon," in a side room of which building the body of that saint was interred. Baghdad was a cultural center of Jewish learning with, in the early nineteenth century, the largest library of the city being in the hands of the astronomer, poet and communal leader Solomon Ma'tuk.