QARAQOSH, Iraq — From the rubble of a ruined church, Pope Francis led prayers for victims of war in Iraq’s battle-scarred city of Mosul on Sunday as part of a historic visit intended to bring solace to a Christian community that the Islamic State militant group tried to wipe out.

Dressed in his white cassock and a golden sash, Francis addressed congregants against a backdrop of destruction: The church from which he spoke was once used as a jail by Islamic State militants and later destroyed in a U.S.-led coalition airstrike. As the pope arrived Sunday, joyous trills and choral song echoed high above the bullet-pocked walls.

“Today we raise our voices in prayer to Almighty God for all the victims of war and armed conflict,” he read from printed paper in a soft voice. “Here in Mosul, the tragic consequences of war and hostility are all too evident.”

The final full day of Francis's trip through Iraq, the first to the country by a pope, was marked by stunning contrast — the leader of the Roman Catholic Church coming to an area that only four years earlier was controlled by a terrorist group that killed religious minorities and vowed in its propaganda to "conquer Rome," symbolic of the Christian West.