Jeremy Corbyn said Christ's experiences as a refugee are "still familiar to us today" and the current migration crisis is a "moral test" for politicians.
He said Jesus was "a refugee whose parents were forced to flee their home because of a campaign of terror by a dictator, King Herod".
"Jesus went on to know what it was to be ostracised, rejected and tortured," he said.
"A family forced to flee their homeland for fear of persecution.
"Sadly, this is still so familiar to us today. There are 68 million refugees across the world, more people than have ever before been forced to flee persecution, war and abject poverty.
"The refugee crisis is a moral test. Jesus taught us to respect refugees. He himself said 'welcome the stranger'.
"And the Bible says 'the foreigner residing among you must be treated as your native-born'.
One of the greatest moral challenges of our time is the refugee crisis— Jeremy Corbyn (@jeremycorbyn) 21 April 2019
And at Easter we're reminded of the teachings of Jesus, a refugee, whose parents were forced to flee their home.
I wish everyone in Britain and across the world a happy Easter. pic.twitter.com/lFo5vAHo0h
"In Britain, we have a proud history of providing a safe refuge to those in need. But this Government refuses to meet our legal obligations to child refugees in Europe as required by the Dubs Amendment.
"At the end of last year as refugees tried to cross the Channel, Sajid Javid threatened to deploy the Navy. But in response, the Bishop of Dover said 'it is crucial that we all remember we are dealing with human beings here'."
He said churches are leading the way in offering support to refugees and added: "We can learn from Christian values and offer the hand of friendship to welcome those in need."
Stay up to date with the latest news stories from a Christian perspective. Sign up to our daily newsletter and receive more stories like this straight to your inbox every morning.