Pope Francis donated half a million dollars to help caravan migrants stranded in Mexico.

The money will come from the Peter’s Pence collection, which is used to “to help the poor in whatever way is possible.”

“In 2018, six migrant caravans entered Mexico, for a total of 75,000 people; the arrival of other groups was announced. All these people were stranded, unable to enter the United States, without a home or livelihood,” read a statement from the Vatican's Peter's Pence Office.

“In this context, Pope Francis donated US $ 500,000 to assist migrants in Mexico. This amount will be distributed among 27 projects in 16 dioceses and among Mexican religious congregations that have asked for help in order to continue providing housing, food and basic necessities to these our brothers and sisters,” the statement read.

The announcement by Pope Francis follows the “mother of all caravans,” which is estimated to have 10,000 migrants traveling through Mexico towards the United States' southern border.

The Mexican government said they planned on deporting thousands of migrants, but thousands more have made it past enforcement officers.

In March, Pope Francis criticized Trump, saying those who build walls “will end up becoming prisoners of the walls they build.”