ABC News February 17, 2016

Pope Francis Calls for 'Open Hearts' During Mass at US-Mexico Border

WATCH: Donald Trump Comments on Pope Francis's Visit to Mexican Border

On the last day of his trip to Mexico, Pope Francis visited a prison, spoke to business leaders and workers, and hosted a Mass near the U.S.-Mexico border.

At the border, the Pontiff asked the world to recognize the plight of people who risk their lives to flee violence, extortion and poverty at home and to put a human face to the "tragedy that is forced migration."

"No more death! No more exploitation!" he said.

Gabriel Bouys/AFP/Getty Images
Pope Francis prays next to he US border before celebrating mass at the Ciudad Juarez fairgrounds, Feb. 17, 2016.

The Pope went on to ask people to have "open hearts" and think about the thousands in Central and South America who are fleeing gangs and violence in their homeland.

He said the journey of forced migration is "laden with grave injustices" and a "human tragedy."

"We cannot deny the humanitarian crisis which in recent years has meant the migration of thousands of people, whether by train or highway or on foot, crossing hundreds of kilometers through mountains, deserts and inhospitable zones," he said.

Gregory Bull/AP Photo
People wait to get a glimpse of Pope Francis as he arrives to celebrate an outdoor Mass in Ciudad Juarez, Mexico, Feb. 17, 2016.

Earlier in the day, at the prison, the Pope called for a rethinking of how to punish criminals.

"We have already lost many decades thinking and believing that everything will be resolved by isolating, separating, incarcerating and ridding ourselves of problems, believing that these policies really solve problems," he said while visiting Cereso state prison in Ciudad Juárez, just across the border from El Paso, Texas.

Mario Guzman/EPA
Pope Francis waves goodbye from the plane at the Benito Juarez International Airport in Mexico City, Mexico, Feb. 17, 2016. Pope Francis will be in the border city of Juarez, Chihuahua, to talk to prisoners and employees and celebrate a Mass with migrants in the last day of his visit to Mexico.
The Pope's Visit to Cuba and Mexico The Moment Pope Francis Scolded 'Selfish' Followers in Mexico Pope Francis' Plane Hit by Laser Beam Over Mexico City The Touching Moment When Pope Francis Is Serenaded With 'Ave Maria' by Teen Cancer Patient

He called the need to fix prison society a "moral imperative."

Pope Francis also toured some of the areas that are most plagued by drug violence.

Mario Guzman/EPA
Mariachis perform as they say goodbye to Pope Francis at the Benito Juarez International Airport in Mexico City, Mexico, Feb. 17, 2016.

Later, while speaking to business leaders and workers in Ciudad Juárez, the Pope said that God "will hold the slave drivers of today accountable."

"The prevailing mentality puts the flow of people at the service of the flow of capital, resulting in many cases in the exploitation of employees as if they were subjects to be used and discarded," he said. "... And we must make sure that these situations do not happen again.”

Ivan Pierre Aguirre/AP Photo
Pope Francis looks at the crowd that came to welcome him upon arrival to Benito Juarez International Airport in Ciudad Juarez, Mexico, Feb. 17, 2016.

The Pope then urged Mexican employers to think about the legacy they want to leave for their children.

"Do you want to leave them the memory of exploitation, of insufficient pay, of workplace harassment?" he asked. He added: "What air will they breathe? An air tainted by corruption, violence, insecurity and suspicion, or, on the contrary, an air capable of generating alternatives, renewal and change?"