The history of the Jews in Iraq (יְהוּדִים בָּבְלִים, Yehudim Bavlim, Babylonian Jews; اليهود العراقيون, al-Yahūd al-ʿIrāqiyyūn) is documented from the time of the Babylonian captivity 586 BCE. Iraqi Jews constitute one of the world's oldest and most historically significant Jewish communities.
The Jewish community in Mesopotamia, known in Jewish sources as "Babylonia", traces its origins to the early sixth century BCE, when a large number of Judeans from the defeated Kingdom of Judah were exiled to Babylon in several waves by the Neo-Babylonian Empire. A few decades later, some had returned to Judah, following the edict of Cyrus. During this time, the Temple in Jerusalem was rebuilt, significant changes in Jewish religious tradition were made, and the Judeans were led by individuals who made Aliyah from Babylonia, such as Zerubbabel, Ezra and Nehemiah.
Though not much is known about the community in Babylonia during the Second Temple and Mishnaic periods, scholars believe the community was still thriving and prospering at that time. The Jewish community of Babylonia rose to prominence as the center of Jewish scholarship following the decline of the Jewish population in the Land of Israel in the 3rd century CE. It became home to many important Talmudic yeshivas such as the Nehardea, Pumbedita and Sura Academies, and the Babylonian Talmud was compiled there. The Mongol invasion and Islamic discrimination under the Caliphates in the Middle Ages eventually led to its decline. Under the Ottoman Empire, the Jews of Iraq fared better. The community established modern schools in the second half of the 19th century. Driven by persecution, which saw many of the leading Jewish families of Baghdad flee for India, and expanding trade with British colonies, the Jews of Iraq established a trading diaspora in Asia known as the Baghdadi Jews.
The Iraqi Jewish community formed a homogeneous group, maintaining communal Jewish identity, culture and traditions.