Pope Francis has told worshippers in a mosque in the Central African Republic that "Christians and Muslims are brothers and sisters".
He was speaking to Muslims who had sought shelter in the capital Bangui after nearly three years of violence between Christians and Muslims.
The mosque visit was seen as perhaps the most difficult part of his Africa tour, a BBC correspondent says
Pope Francis then held the final Mass of his Africa trip in Bangui.
He was speaking in Latin, which was then translated into the local Sango language.
His message of reconciliation appeared to have an immediate impact, as a reporter from the AFP news agency spotted a group of Muslim rebels turn up at the Mass wearing t-shirts with the Pope's image on them.
The Pope has now left the CAR at the end of his six-day visit to the continent.
More than 100,000 Muslims fled the capital as a result of the fighting but 15,000 are left in an area called PK5, according to the campaign group Human Rights Watch.
Imam Tidiani Moussa Naibi thanked the Pope for his visit and said it was "a symbol which we all understand", the AP news agency reports.
There was tight security for the visit to the Koudoukou mosque and armed UN peacekeepers were stationed on its minarets watching the crowds who had come to greet the pontiff.
On Sunday, the Pope called on fighting factions in the CAR to lay down their weapons.
About half of CAR's population is Christian and 15% Muslim.
Children waited to greet Pope Francis at the mosque in Bangui
Crowds turned out to see the Pope as he drove into the PK5 neighbourhood
Celebrating Mass in Bangui, he said they should instead arm themselves "with justice, love, mercy and authentic peace".
Earlier, he said he hoped next month's election in the CAR would open a "new chapter" for the country.
The trip to the CAR was the pontiff's first visit to a conflict zone and the final stop on his three-nation African tour that also took in Kenya and Uganda.
Conflict has blighted the CAR for decades but it was only in 2013 that the fighting took on a religious form.
President Francois Bozize was ousted in a coup in March 2013 and a group of mostly Muslim rebels from the north, the Seleka, marched on Bangui, briefly taking control of the country.
Their rebellion tapped into a feeling northerners had of being excluded and unrepresented by the central government, correspondents say.
They targeted churches and Christian communities, which triggered the creation of the anti-Balaka - meaning anti-violence - militias, and led to a downward spiral of tit-for-tat violence which continues.
Towns and villages are divided, with hundreds of thousands of people displaced into camps divided along religious lines.
Latest Stories
-
No business as usual – Mahama warns appointees
2 minutes -
Mr P.O.P: Message from the Morning Man by Kojo Yankson
4 minutes -
True peace stems from justice, not the lack of conflict – Duncan-Williams
5 minutes -
One dead, student rider injured in a crash at Assin Andoe
6 minutes -
Have a long term plan and financial solution for Ghana’s energy sector to permanently get rid of “dumsor”.
11 minutes -
Ghana to commission first NuScale small modular reactor simulator training centre in Africa
13 minutes -
FirstBank celebrates year-end thanksgiving service at Victory Bible Church
28 minutes -
FirstBank’s 2024 Graduate Trainees give back to the community: A day of learning and sharing at Mount Zion Presby Model Primary School
32 minutes -
Fire destroys hundreds of shops in Techiman Central Market, traders left in despair
44 minutes -
Apple board pushes against diversity rollback call
48 minutes -
‘Merit and loyalty go hand-in-hand,’ says Prof Aryee on Mahama’s appointments
1 hour -
Statue of former President Akufo-Addo in Sekondi destroyed
1 hour -
NDC promised to decouple AG and Minister of Justice roles – Prof Atsu Aryee reminds party
2 hours -
Wake up and speak up – Former GES boss calls on headteachers to lead boldly
2 hours -
Taliban ‘do not see women as human’, says Malala
2 hours