Showing Mercy to the Least of These

In Matthew 25 Jesus says that he will judge believers according to whether they showed mercy to those at the margins. What is going on here? It seems that Jesus is telling believers that they must treat others like family. Since the church is a family its members...