In the first public Mass of his weeklong visit to Brazil, Pope Francis urged Catholics to resist the "ephemeral idols" of money, power and pleasure. 

Thousands packed into the cavernous Basilica of the Shrine of Our Lady of Aparecida, one of the most important shrines in Latin America that is halfway between Rio and Sao Paulo. Aparecida is a version of the Virgin Mary venerated as the patroness of Brazil, home to the biggest Roman Catholic population in the world.

"Often a growing sense of loneliness and emptiness in the hearts of many people leads them to seek satisfaction in these ephemeral idols."

- Pope Francis

On Wednesday, tens of thousands more braved a cold rain outside the Basilica to catch a glimpse of the first pope from the Americas.

Before the Mass, Francis stood in silent prayer before the 15-inch-tall image of the Virgin of Aparecida, the "Black Mary," his eyes tearing up as he breathed heavily. It was a deeply personal moment for this pontiff, who has entrusted his papacy to the Virgin Mary and, like many Catholics in Latin America, places great importance in Marian devotion.

During his homily, Francis urged Catholics to keep their values of faith, generosity and fraternity, a message he was expected to repeat later in the day during a visit to a drug rehabilitation center in Rio de Janeiro.

"It is true that nowadays, to some extent, everyone including our young people feels attracted by the manyidols which take the place of God and appear to offer hope: money, success, power, pleasure," he said. "Often a growing sense of loneliness and emptiness in the hearts of many people leads them to seek satisfaction in these ephemeral idols."

The church is struggling in Latin America to keep Catholics from straying to evangelical and Pentecostal churches that often promise help in finding material wealth, an alluring attraction in a poverty-wracked continent. Francis' top priority as pope has been to reach out to the world's poor and inspire Catholic leaders to go to slums and other peripheries to preach.

It was no coincidence, then, that the first major event of his first foreign trip as pope was a Mass in Aparecida. The tiny shrine, which draws 11 million pilgrims a year, hosted a critical 2007 meeting of Latin American bishops who, under the guidance of then-Cardinal Jorge Mario Bergoglio, drafted a mission statement on how to reinvigorate the faith on the continent.

"I've seen people in my own congregation leave because the Evangelicals offer them something new and exciting and the Catholic Church was seen as kind of old and stuffy," said Marcia Cecilia de Souza, the 52-year-old owner of a private school in the southern state of Santa Catarina, as she searched for newspaper to stuff into her soaked leather boots. "Francis is such an inspiration, so humble and giving I think he's going to bring people back into the fold."

Unlike the scenes of chaos that greeted Francis upon his Monday arrival in Rio, when a mob of faithful swarmed his motorcade from the airport, the security situation in Aparecida was far more controlled. Chest-high barriers kept the faithful far from his car. Soldiers in camouflage, emergency crews in raincoats and other uniformed security forces stood guard along his route while his bodyguards walked along the side of his vehicle.

Before the Mass, some pilgrims sought shelter from the Southern Hemisphere winter chill beneath tarps while others wrapped themselves in blankets and sleeping bags. And many left offerings to the Virgin.

Lena Halfeld, a 65-year-old housewife, paused to add her offering to a cardboard box filled with stuffed animals, leg braces and other personal objects. She deposited an embossed invitation to her niece's December wedding, which she was praying for the Virgin to bless.

"I have real faith in the powers of the Virgin of Aparecida," said Halfeld, adding she had made the hours-long trip to the church once a week for a year during her husband's recent illness. "Now he's cured, so I owe it all to her. I can't think of a more wonderful setting to see the new pope."

Francis is in Brazil for World Youth Day, a church event that brings together young Catholics from around the world roughly every three years. Approximately 350,000 young pilgrims signed up to officially take part in the Youth Day events.

Based on reporting by The Associated Press.

Follow us on twitter.com/foxnewslatino
Like us at facebook.com/foxnewslatino