Spurred by the immigration of some the leading Jewish families of Baghdad fleeing the persecution of Dawud Pasha, the first synagogue, replacing a small prayer room, was opened in 1823, and with the community expanding quickly a second followed in 1856.