Pope Francis met Cuba's revolutionary leader Fidel Castro today hours after warning Cubans to beware the dangers of ideology and the lure of selfishness as their country enters a new era of closer ties with the United States.

Latin America's first pope and Castro, the region's last surviving leftist icon of the 20th century, discussed religion and world affairs at the home of the 89-year-old retired president for about 40 minutes.

Vatican spokesman Father Federico Lombardi said the meeting, which included Castro's wife and other family members, was "very relaxed, fraternal and friendly."

Francis gave Castro several of his official papal writings, two books on spirituality and a book and CD on the writings of Father Armando Llorente, a priest who taught Castro in Jesuit prep school more than 70 years ago.

Castro gave him a copy of "Fidel and Religion," a 1985 book of interviews with a Brazilian priest which lifted a taboo on speaking about religion in Cuba, then officially atheist.

Francis met Castro, who built a one-party state that improved health and education services for Cubans but also limits democratic freedoms and represses dissent, after celebrating Mass in Havana's Revolution Square.

There, he spoke beneath massive portraits of revolutionary leaders Ernesto "Che" Guevara and Camilo Cienfuegos built into the facades of state buildings.

To welcome the pope, who helped bring about the recent rapprochement between Cuba and the United States, a similarly giant poster of Jesus Christ was hung nearby.

Francis delivered a mostly religious homily to the tens of thousands present, but sprinkled it with criticism of "elitism" and ideology.

"Service is never ideological for we do not serve ideas, we serve people," he said at the Mass, attended by President Raul Castro and top members of the communist government.

Cuban police kept some dissidents from attending the Mass and pounced on others apparently attempting to hand out flyers near the plaza.

In what government foes could see as criticism of party bureaucracy, he said Jesus' apostles foolishly argued about rank and the pope compared it to "those who climb the ladder most quickly to take the jobs which carry certain benefits".

NEW OPENING, NEW DANGERS

Francis also appeared to appeal to Cubans to look after each other as the country faces social changes and new economic opportunities.

He said they should continue to be "at the service of the frailty of your brothers and sisters" and "not neglect them for plans which can be seductive, but are unconcerned about the face of the person beside you".

At the end of the Mass, the pope appealed to Colombia's government and Marxist FARC guerrillas to ensure that nearly three years of peace talks in Cuba are successful in order to end their "long night" of war.

Between 30-40 dissidents were detained to stop them attending papal events, a dissident human rights group said.

Security agents wrestled two men and a woman to the ground at the edge of Revolution Square, then led them off, after they started shouting and tried to hand out flyers, a Reuters witness said.

Arriving on Saturday, Francis exhorted Cuba and the United States to deepen their detente, and encouraged Cuba to grant more freedom to the Roman Catholic Church, which has re-emerged as a powerful force after suffering decades of repression.

"His visit is cause for hope in our aspirations for improvement," said biologist Benito Espinoza, 41, at Revolution Square. "We are an optimistic people, but we have suffered for many years."

Francis waved and greeted Cubans as he arrived at the Mass, delighting one family when he picked up and kissed a four-year-old girl Karen Correoso. "It's a historic moment for her and for us. He blessed her," said the girl's aunt, Maria Teresa Gonzalez, 64, from a church in Matanzas city.

Many Cubans appreciate the pope for his role in the secret talks that led to last December's breakthrough with Washington, when Castro and U.S. President Barack Obama vowed to normalize relations and end half a century of Cold War-era animosity.

Francis will fly from Cuba to Washington on Tuesday. He will meet with Obama and address both the U.S. Congress and United Nations.

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.