Pope Francis has said Mass to thousands of people in the packed Franso Hariri stadium in Erbil.
At the end of the last official event before he returns to Rome on Monday, Francis told the crowd: “Iraq will always remain with me, in my heart.”
He closed by saying “salam, salam, salam [peace, peace, peace]”.
Earlier, The Pope led prayers in Mosul – a former stronghold of terror group Islamic State.
He flew in by helicopter and was greeted by crowds in the decimated northern Iraqi city, where just a handful of Christian families now live.
Thousands of Christians fled the area during the IS occupation, where they were faced with conversion, death, or paying a tax for non-Muslims.
On the way to the venue, he stopped by the ruins of homes and cathedrals that had been destroyed by IS violence, to hold a moment of silence.
He then took part in the service from a once-bustling city square, surrounded by the ruins of several damaged churches, which were destroyed when IS overran the area in 2014.
“How cruel it is that this country, the cradle of civilization, should have been afflicted by so barbarous a blow, with ancient places of worship destroyed and many thousands of people – Muslims, Christians, Yazidis and others – forcibly displaced or killed,” he told the crowd.
“Today, however, we reaffirm our conviction that fraternity is more durable than fratricide, that hope is more powerful than hatred, that peace more powerful than war.”
Pope Francis added that hope could not be “silenced by the blood spilled by those who pervert the name of God to pursue paths of destruction”.
In prayer, he said: “If God is the God of life – for so he is – then it is wrong for us to kill our brothers and sisters in his name. If God is the God of peace – for so he is – then it is wrong for us to wage war in his name.
“If God is the God of love – for so he is – then it is wrong for us to hate our brothers and sisters.”
He concluded the prayer saying: “To you we entrust all those whose span of earthly life was cut short by the violent hand of their brothers and sisters; we also pray to you for those who caused such harm to their brothers and sisters. May they repent, touched by the power of your mercy.”
A white dove was also released by Pope Francis, to symbolise peace – a running theme for his papal visit.
In 2014, in Mosul’s al-Nuri mosque, Abu Bakr al Baghdadi gave a sermon in an extremely rare public appearance, where he announced the IS caliphate.
Mosul was liberated in July 2017 after a brutal three-year regime of terror in the city, that left an estimated 9,000-11,000 people dead.
The Vatican hopes that Pope Francis’s appearance in Mosul will encourage Christian communities to stay in the area, despite years of violence and persecution.
The Pope visited one of the most influential Muslim leaders in the world on Saturday, Grand Ayatollah Ali al Sistani, where the men discussed the issues facing Christian communities in the country.
Following the meeting, al Sistani said he wanted Muslims and Christians to coexist in Iraq, and called on other religious leaders to hold great powers to account and for wisdom and sense to prevail over war.