Pope Francis departed from Bahrain on Sunday after a four-day trip that culminated with a visit to the Gulf's oldest Catholic church, where he told bishops, priests and nuns to remain united as they ministered to the faithful in the majority Muslim area.
The last event was at Sacred Heart church, built in 1939 on land donated by the then-ruler, putting Bahrain on the road to becoming one of the most accommodating countries in the region for non-Muslims.
Bahrain has two Catholic churches, including a modern cathedral that is the largest church on the Arabian Peninsula, and has about 160,000 Catholics, most of them foreign workers. Many Catholics also visit from neighbouring Saudi Arabia, which bars public worship by non-Muslims.
Francis, who suffers from a knee ailment that forced him to use a wheelchair during the trip, told local Catholic leaders to avoid factions, quarrels and gossip.
"Worldly divisions, but also ethnic, cultural and ritual differences, cannot injure or compromise the unity of the Spirit," he said.
There are around 60 priests working among an estimated 2 million Catholics spread across four countries in North Arabia, said Bishop Paul Hinder, the Vatican's apostolic vicar for the area, citing sometimes "very difficult conditions" for those who serve the community due to restrictions in some states.
At the end of the church service, Pope Francis thanked King Hamad bin Isa Al Khalifa for Bahrain's "exquisite hospitality".
King Hamad and Sheikh Ahmad al-Tayyeb, Grand Imam of Egypt's Al-Azhar mosque and university who was also in Bahrain, greeted the pontiff at the airport before he left for Rome, state TV showed.
Pope Francis' visit, where he closed an East-West dialogue hosted by Bahrain, continues his policy of improving ties with the Islamic world following a historic visit to the United Arab Emirates in 2019.
But it also drew attention to tensions between Bahrain's Sunni Muslim monarchy and the Shi'ite opposition that accuses the government of overseeing human rights abuses, a charge authorities deny.
The pope stressed human rights in his first address in Bahrain, speaking against the death penalty and calling for "ensuring respect and concern for all those who feel most at the margins of society, such as immigrants and prisoners".
Foreigners, mostly low-paid migrant workers, form the backbone of economies in the oil-producing region. Thousands of Catholics in Bahrain and from around the Gulf poured into a stadium to hear the Pope say Mass on Saturday.
Later that day relatives of death-row and life-sentence inmates in Bahrain, which crushed a pro-democracy uprising in 2011, held a small protest along the pope's motorcade route until policemen intervened to end it.
At the East-West dialogue, the pontiff focused on the role of religions in promoting peace and disarmament. Earlier he touched on the "forgotten war" in Yemen where seven years of conflict has caused a dire humanitarian crisis.
(Reporting by Philip Pullella; Additional reporting by Ghaida Ghantous; Editing by Hugh Lawson)