The Roman Catholic Church should not have "leaders for life" in its ranks, otherwise it would risk being like a country under dictatorship, Pope Francis said on Friday.

Francis, 78, has said before that he would be ready to resign instead of ruling for life if he felt he could not continue running the 1.2-billion-member church for health or other reasons.

"Let's be clear. The only one who cannot be substituted in the Church is the Holy Spirit," the pontiff said in an address to some 30,000 people at an interdenominational rally of Christians in St. Peter's Square.

"There should be a time limit to positions (in the church), which in reality are positions of service," he said in an address that was in part prepared and in part extemporaneous.

Making clear his comments were not confined to the clergy, Francis added: "It is convenient that all (positions) in the church should have a time limit. There are no leaders for life in the church. This occurs in some countries where a dictatorship exists."

In February 2013, Francis's predecessor, Pope Benedict XVI, became the first pontiff to resign in 600 years.

In an interview with Mexican television last March, Francis said that what Benedict, who now is a pope emeritus, did "should not be considered an exception, but an institution."

But in the same interview, he said he did not like the idea of an automatic retirement age for popes, for example at 80.