Pope Francis paid his respects Saturday to Ugandan Christians who were burnt alive rather than renounce their faith, the latest group of martyrs from around the world honored by Francis in hopes of giving today's faithful missionary role models.

A somber Francis prayed at shrines dedicated to the 23 Anglican and 22 Catholic martyrs who were killed between 1885 and 1887 on the orders of a local king eager to thwart the influence of Christianity in his central Ugandan kingdom.

At Namugongo, outside the capital, Kampala, where most of the martyrs were burned alive, he celebrated Mass in their honor to mark the 50th anniversary of the Catholics' canonization.

As many as 2 million people were expected to attend the Mass, including Ugandan President Yoweri Museveni, the president of South Sudan and the descendant of the king who ordered the martyrs killed.

Some of the pilgrims had been here all night to honor the martyrs and see the pope, braving rains and sleeping on mats to guard against the mud that turned the grounds into chocolate-colored muck.

"They are so important because they sacrificed their life because of their religion," said Beneh Ssanyu, 27, who showed off the mud encrusting her sandals and pants — evidence of her 1 p.m. Friday arrival that scored her a prime front-row seat.

During his two days in Uganda, Francis is expected to touch on some of the same themes he emphasized during the first leg of his trip in Kenya: corruption, poverty and giving young Christians hope and encouragement. After the Mass on Saturday, Francis has a rally with young people, a visit to a charity and a meeting with local priests, seminarians and nuns.

In preparation for his visit, workers labored day and night fixing the narrow road leading to the shrine in Namugongo. The shrine itself underwent major repairs that were carried out like a military project: Ugandan troops from the engineering brigade joined the contractor to do everything from planting grass to laying pavers.

Francis has made a point on his foreign travels to honor local martyrs in hopes of inspiring a new generation of missionaries. When he was in South Korea, for example, he beatified 124 missionaries who helped bring the faith to the Korean Peninsula. He has also spoken out frequently about today's martyrs, the Christians in the Middle East and Africa who have been slaughtered by Muslim militants.

The history of Uganda's martyrs has helped shape the Catholic Church here, with huge numbers of pilgrims flocking to the Namugongo shrine, many of them Africans arriving from as far away as Congo and Tanzania. Most of the pilgrims walk long distances to the site to underscore their faith.

King Mwanga II of Buganda Kingdom ordered the martyrs killed during a period of political and religious turmoil as he tried to assert his authority amid the growing influence of missionaries from Europe.

But the history of the martyrs also shows a personal grudge Mwanga held against them: After the martyrs converted to Christianity, they began rebuffing his sexual advances since church teaching forbid homosexuality. That was part of the reason they were ordered killed, according to the history of the slaughter, "African Holocaust" by J.F. Faupel.

"It is absolutely true. It is a fact," said Bishop Giuseppe Franzelli, a longtime Italian missionary in Uganda. "When they became Christians, they saw that this was not according to the Gospel, the teaching of Christ and they said no."

The little-known history might help explain why homosexuality remains so taboo today in Uganda, which is 47 percent Catholic and has criminalized homosexuality.

The Vatican has refused to say whether Francis will discuss gay rights openly while here.

On Sunday, Francis heads to his final destination, the Central African Republic.

___

Follow Nicole Winfield at www.twitter.com/nwinfield