Pope Francis condemned "slavery" and "torture" in migrant camps, drawing parallels with World War II, during a mass Friday for migrants in the Cyprus capital Nicosia.

"It reminds us of the history of the last century, of the Nazis, of Stalin, and we wonder how this could have happened," he said.

"What happened then is happening today on nearby coasts," the pope warned.

Francis was speaking off text at the Church of the Holy Cross next to the UN-patrolled buffer zone that divides the Mediterranean island.

"There are places of torture, people who are sold. I say that because it is my responsibility to open your eyes," he said.

Pope Francis greets migrants at the Roman Catholic church of the Holy Cross near the United Nations buffer zone in the Cypriot city of Nicosia, Europe's last divided capital
Pope Francis greets migrants at the Roman Catholic church of the Holy Cross near the United Nations buffer zone in the Cypriot city of Nicosia, Europe's last divided capital AFP / Andreas SOLARO

"We look at what is happening, and the worse is that we have become used to it. Getting used to it is a very serious illness," he told a congregation of around 250 people, most of them migrants.

Francis earlier praised "the dream of a humanity freed of walls of division, freed of hostility", saying diversity and individuality are "God's gifts".

The pontiff, who heard testimonies of migrants from countries including Iraq, Sri Lanka and Cameroon, is expected to take back with him 50 migrants.

The plight of migrants and the notion of fraternity have been key themes of the pope's visit, which he started on Thursday.

Francis travels Saturday to Greece, for a visit that will include the key migrant hub island of Lesbos.