Pope Francis says Christians and Muslims are "brothers", and has urged them to reject hatred and violence while visiting a mosque in the Central African Republic's capital which has been ravaged by sectarian conflict.
On the last leg of a three-nation tour of Africa, the leader of the world's 1.2 billion Catholic visited a flashpoint Muslim neighbourhood in Bangui on what was the most dangerous part of his 24-hour visit.
Thousands of people gathered at the roadside, cheering as his Popemobile drove down the red dirt roads. As his vehicle passed, many waving Vatican flags and dressed in long traditional robes, ran down the road after it, an AFP correspondent said.
"Christians and Muslims are brothers and sisters," he said after meeting Muslim leaders at the Koudoukou mosque in the PK5 district, the last Muslim enclave in Bangui where tensions remain high after months of violence.
"Together, we must say no to hatred, to revenge and to violence, particularly that violence which is perpetrated in the name of a religion or of God himself," he said.
The Pope later flew out of Bangui at the end of his first trip to Africa that has also taken him to Kenya and Uganda.
Pope Francis' message of peace and reconciliation appeared to have made a powerful impression, with a group of Muslim rebels turning up to join tens of thousands watching a papal mass at the capital's Barthelemy Boganda Stadium.
In extraordinary scenes just before the Pope's arrival, two pickup trucks pulled up in the middle of the crowd and a group of Muslim vigilantes from PK5 leapt out, all wearing T-shirts bearing the Pope's image, an AFP correspondent said.
As they pushed through the crowd in an area where Muslims usually do not dare to venture, people cheered and applauded, shouting: "It's over" in reference to the intercommunal hatred which has blighted the country.
Several hundred people had packed into the mosque, including a number actually living there after being forced out of their homes by the violence.
"We are very proud to welcome him, the Pope is not only for the Christians, he is a servant of God for all Central Africans," said Ibrahim Paulin, a spokesman for the displaced.
Pope Francis said his visit to CAR "would not be complete if it did not include this encounter with the Muslim community," saying all those who believed in God "must be men and women of peace".
Perched high on the mosque's minarets were armed UN peacekeepers from the MINUSCA force who were keeping a close eye on the crowds as a helicopter buzzed overhead.
The 78-year-old has hammered home a message of peace and reconciliation, ending his visit with a mass at the 20,000-seat stadium, with thousands more watching it on giant screens set up outside.