World leaders and Catholic faithful bade farewell to Pope Francis in a funeral Saturday that highlighted his concern for the “most peripheral of the peripheries” and reflected his wishes as pastor. Though presidents and princes attended the Mass in St. Peter’s Square, prisoners and migrants were welcoming him at the basilica across town where he will be buried.

The sun rises through a statue as people begin to take their seats in St. Peter’s Square ahead of the funeral of Pope Francis at the Vatican. (Markus Schreiber/Associated Press)

The coffin of Pope Francis is carried into St. Peter’s Square. (Alessandra Tarantino/Associated Press)

Archbishop Diego Giovanni Ravelli, kneeling right, presides over the funeral. (Evan Vucci/Associated Press)

A view of the funeral of Pope Francis in St. Peter’s Square. (Gregorio Borgia/Associated Press)

Hundreds of thousands attended the funeral of Pope Francis in St. Peter’s Square. (Andrew Medichini/Associated Press)

The book of the Gospels lies on the coffin of Pope Francis. (Alessandra Tarantino/Associated Press)

A nun holds a photo of Pope Francis while attending his funeral. (Andreea Alexandru/Associated Press)

In this photo provided by the Ukrainian Presidential Press Office, Ukraine President Volodymyr Zelenskyy and President Donald Trump talk as they attend the funeral of Pope Francis. (Ukrainian Presidential Press Office via AP)

The faithful gather during the funeral of Pope Francis in St. Peter’s Square. (Alessandra Tarantino/Associated Press)

A nun sits along Via della Conciliazione street during Pope Francis’ funeral ceremony near the Vatican. (Henry Nicholls/AFP via Getty Images)

An aerial image shows the crowd Saturday at Pope Francis’s requiem mass at the Esplanade of Tasitolu in Dili, East Timor, where he held a Mass in September last year. (Yasuyoshi Chiba/AFP via Getty Images)

Italian cardinal Giovanni Battista Re (left) officiates near the coffin of Pope Francis. (Photo by Andreas Solaro SOLARO/AFP via Getty Images)

Cardinals embrace after late Pope Francis’ funeral ceremony at St. Peter’s Square. (Photo by Filippo Monteforte/AFP via Getty Images)

People gather along the road as the coffin of late Pope Francis is transported from St Peter’s Basilica to Santa Maria Maggiore Basilica. (Andrej Isakovic/AFP via Getty Images)

A mourner lights a candle in front of a picture of the late Pope Francis outside the Cathedral in Buenos Aires, Argentina. (Natacha Pisarenko/Associated Press)

The coffin of Pope Francis is transported in front of the Colosseum on its way to St. Mary Major. (Mauro Scrobogna/LaPresse via AP)

The coffin of Pope Francis arrives at St. Mary Major Basilica in Rome. (Francisco Seco/Associated Press)

Crowds gather at the funeral of Pope Francis in St. Peter’s Square. (Dan Kitwood/Getty Images)