Images are unavailable offline.

Pastor Robert Jeffress addresses attendees at the Southern megachurch First Baptist Dallas on June 28, 2020.

Tony Gutierrez/The Associated Press

Crowded bars and house parties have been identified as culprits in spreading the coronavirus. Meat-packing plants, prisons and nursing homes are known hot spots. Then there’s the complicated case of America’s churches.

The vast majority of these churches have co-operated with health authorities and successfully protected their congregations. Yet from the earliest phases of the pandemic, and continuing to this day, some worship services and other religious activities have been identified as sources of local outbreaks.

They are by no means at the top of the list of problematic activities across the U.S., but they have posed challenges for government leaders and public-health officials whose guidelines and orders are sometimes challenged as encroachments on religious liberty.

Story continues below advertisement

“If we wanted to have zero risks, the safest thing would be to never open our doors,” said prominent Dallas megachurch pastor Robert Jeffress. “The question is how can you balance risk with the very real need to worship.”

In the past two weeks alone, there have been two notable church-government confrontations in California.

San Francisco’s city attorney sent a cease-and-desist order in late June to the Roman Catholic archdiocese, alleging that some of its churches had violated a local ban on large indoor gatherings. The archdiocese promised to comply.

A few days later, state officials temporarily banned “indoor singing and chanting activities” at all places of worship, prompting some pastors to defy the rule.

Story continues below advertisement

Evangelical pastor Samuel Rodriguez said worshippers at his Sacramento megachurch joined in singing hymns on July 5, even as most of them wore face masks and obeyedphysical-distancing guidelines.

“To forbid singing in a church is morally reprehensible,” Mr. Rodriguez said. “That is how we petition heaven.”

The extent to which religious gatherings have contributed to the pandemic’s toll may never be known with any precision. But there’s no question they have played a role throughout, internationally as well as in the United States, even as myriad houses of worship halted in-person services for safety reasons.

Of the first wave of cases in South Korea in February, several thousand were members of the secretive Shincheonji Church of Jesus. Hundreds of other cases were linked to a Muslim missionary movement event in late February in Malaysia that was attended by about 16,000 people from numerous East Asian countries.

Story continues below advertisement

In the second week of March, before warnings and lockdown orders proliferated in the U.S., 35 of the 92 people who attended events at a rural Arkansas church developed COVID-19, and three of them died, according to a Centers for Disease Control and Prevention report issued in May.

More recently, in mid-June, a small-town church in northeastern Oregon became the epicentre of the state’s largest coronavirus outbreak, when 236 people linked to the Lighthouse Pentecostal Church tested positive.

According to the Observer newspaper in nearby La Grande, the church in Island City had held religious services, a wedding and a graduation ceremony in the weeks preceding the outbreak, sometimes with more than 100 people in attendance in defiance of state restrictions on gatherings.

Union County, with a population of 25,000 people, had recorded fewer than 25 cases during the pandemic prior to the church outbreak. Within two weeks, it had Oregon’s highest per capita rate of coronavirus infections.

Story continues below advertisement

Also in June, West Virginia’s health department announced outbreaks linked to five churches in different parts of the state. The biggest was at Graystone Baptist Church in Lewisburg with 51 cases, three of them fatal.

In several cases, churches that resumed in-person services opted to close again after outbreaks. Among them:

Another Baptist church, First Baptist Dallas, was in the spotlight June 28 when it hosted Vice-President Mike Pence at its annual Freedom Sunday celebrations. Most of the 2,400 attendees wore face masks, but some criticism surfaced after the choir sang without masks.

Mr. Jeffress, the church’s pastor and a prominent evangelical conservative with close ties to President Donald Trump, said the choir and orchestra had been tested for COVID-19 beforehand. The church said a few who tested positive did not take part in the event.

Mr. Jeffress bristled at the idea that choirs should be temporarily banned.

Story continues below advertisement

“Choirs will always be a part of worship for us,” he said. “We think it’s possible to still have them but do it in a safe way.”

A few days after the Freedom Sunday event, Texas Governor Greg Abbott issued an order requiring people wear face masks in most public settings – with several exceptions, including participants in religious services.

Some churches, through their physical attributes and the decisions of their leaders, have been able to minimize risks as worship resumes.

In Incline Village, Nev.,, along the north shore of Lake Tahoe, St. Patrick’s Episcopal Church took advantage of a unique feature to relaunch scaled-back, in-person services this month: its outdoor mountain amphitheatre chapel shaded by pine trees.

Church officials took precautionary measures such as moving the log-bench pews farther apart, capping attendance at 50 and requiring worshippers have their temperature taken, employ hand sanitizer and wear masks. There was no Eucharist or passing of the peace, and the usual postservice coffee hour was held by video conference.

Story continues below advertisement

“Good morning, children of God,” the Rev. Sarah Dunn, the church’s rector, said from behind a Plexiglas screen, welcoming parishioners back to the physically distanced service July 5 after 16 Sundays apart. She acknowledged feeling “mixed emotions”: apprehension as the virus remains a threat, but joy at being able to gather in the sacred space.

Our Morning Update and Evening Update newsletters are written by Globe editors, giving you a concise summary of the day’s most important headlines. Sign up today.