Pope Francis called for religious freedom and efforts to tackle "fanaticism" on Saturday as he started a visit to Morocco, where he is set to meet Muslim leaders and migrants.

The spiritual leader of the world's 1.3 billion Catholics was invited by King Mohammed VI as part of a mission to develop "interreligious dialogue", according to Moroccan authorities.

Improving relations with other religions has been a priority for the Argentine pontiff, whose papacy has been marred by a wave of child sex abuse allegations against clergy.

Addressing thousands of Moroccans who had braved the rain to attend the welcome ceremony, Francis said it was "essential to oppose fanaticism".

He stressed the need for "appropriate preparation of future religious guides", ahead of meeting trainee imams later on Saturday.

Catholics are a tiny minority in the country where 99 percent of the population is Muslim. The king is revered across West Africa as "commander of the faithful".

Speaking at the ceremony at the Tour (or tower) Hassan mosque and nearby mausoleum in Rabat, Francis defended "freedom of conscience" and "religious freedom".

"Live as brothers," he told a crowd of around 25,000, after arriving from the airport in his Popemobile, passing rows of Moroccan and Vatican City flags.

Well-wishers packed the esplanade outside the partly-finished 12th century mosque, while others, including many Moroccans in traditional costume, lined the nearby.

Rabat has stepped up security ahead of the first papal visit to the North African country since John Paul II in 1985.

Buildings have been repainted, streets decorated and lawns manicured for the pope's two-day visit.

Francis was earlier greeted from the papal plane by the king, who will host the pontiff at the royal palace later Saturday.

The pope will also visit an institute where around 1,300 students are studying to become imams and preachers, teaching "moderate Islam" and backed by the king.

"It's a very significant event, the first time that a pope is welcomed to an institute for the training of imams," said Vatican spokesman Alessandro Gisotti.

Rabat has stepped up security ahead of the first papal visit to the North African country since John Paul II in 1985.

Buildings have been repainted, streets decorated and lawns manicured for the pope's two-day visit.

Meeting migrants 

Last month Francis visited the United Arab Emirates, where he met with Sheikh Ahmed al-Tayeb, the imam of Cairo's Al-Azhar, Sunni Islam's prestigious seat of learning.

The two signed a document on "human fraternity for world peace", which among other things called for "freedom of belief" and "full citizenship" rights for minorities.

Francis will not hesitate to refer to the text, which from now on he will give to all heads of state, Gisotti said.

In Morocco, where Islam is the state religion, authorities are keen to stress the country's "religious tolerance" which allows Christians and Jews to worship freely.

But Moroccans are automatically considered Muslim if they are not born into the Jewish community, apostasy is socially frowned upon, and proselytising is a criminal offence.

Those who try to "rock the faith of a Muslim or to convert him to another religion" risk a prison term of up to three years.

After years in the shadows, since 2017 the small number of converts have called openly for the right to live "without persecution" and "without discrimination".

Around 30,000 to 35,000 Catholics live in Morocco, many of them from sub-Saharan Africa.

The pope is due to finish his Saturday schedule by meeting migrants at a centre run by Catholic humanitarian organisation Caritas.

The charity runs day centres for migrants who are trying to reach Europe across the Mediterranean, as well as helping them access services.

The number of people taking the sea route from Morocco to Spain has recently surged as it has become harder for them to pass through Libya.

In 2017, Caritas centres in Rabat, Casablanca and Tangiers welcomed 7,551 new arrivals, according to the charity.

Rabat claims to have a "humanistic" approach to migration and rejects allegations by rights groups of "brutal arrest campaigns" and "forced displacement" to the country's southern border.

Francis has throughout his papacy highlighted the plight of migrants and refugees, calling on Catholics as well as politicians to show solidarity with those in need.

On Sunday, the pope will celebrate mass at a Rabat stadium with an estimated 10,000 people attending.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.