SACRAMENTO, Calif. (AP) — When the nation’s largest electric utility preemptively shut off power last fall to prevent wildfires in California, customers lost more than just their lights — some lost their phones, too.

Data from the Federal Communications Commission shows 874 cellphone towers were offline during an Oct. 27 power shutoff that affected millions of people. That included more than half of the cell towers in Marin County alone.

The outages mean people who depend solely on cellphones couldn’t call 911 or receive emergency notifications, compounding the dangers associated with an unprecedented power outage in an era dominated by wireless communication.

On Wednesday, some Democratic lawmakers introduced legislation that would require telecommunication companies to have at least 72 hours of back-up power for all cellphone towers in high-risk fire areas. Telecom companies would have to pay for it.

Sen. Mike McGuire said he wrote the bill after meeting with telecom company officials last summer, where he said they assured him they had plans to prevent widespread outages during a power shutoff.

“As we all know, this wasn’t true. They were wrong. And, candidly, lives were put at risk,” McGuire said.

The federal government has tried to mandate backup power for cellphone towers in the aftermath of Hurricane Katrina in 2005. But the industry successfully fought it.

“Do I believe we are in for a fight? Hell yes,” McGuire said, adding: “This is no longer a discussion about cost.”

McGuire announced his bill on the same day representatives from AT&T and Verizon were scheduled to testify before state lawmakers about the outages and ways to prevent them. It’s the second time lawmakers will have hauled in private companies to account for the effects surrounding the widespread blackouts in the fall, the largest planned power outages in state history.

In November, lawmakers questioned executives from the state’s largest investor-owned utilities, including the leadership of troubled Pacific Gas & Electric, whose equipment has been blamed for sparking the 2018 that killed 85 people in Paradise and destroyed roughly 19,000 buildings. The company filed for bankruptcy last year.

Telecommunications outages have worsened as wildfires have become more common and more destructive. A report from the California Public Utilities Commission found 85,000 wireless customers and 160,000 wired customers lost service during the 2017 North Bay Fires.

Most recently, the FCC says up to 27% of Sonoma County’s wireless cell sites were offline during a fire in October.

In advance comments to the legislative committee, California’s four largest wireless companies — AT&T, Sprint, T-Mobile and Verizon — say they generally make sure their major telecommunication hubs have at least between 48 hours and 72 hours of on-site backup power. They use mobile generators at other sites, but said the generators don’t work at every cell tower.

Also, the companies said the electric company warns them about blackouts just two hours ahead of time, making it hard for them to get their mobile generators in place and to keep them fueled.

AT&T spokesman Steven Maviglio said the company is experienced in managing large-scale outages, but noted “the power companies’ decision to shut off power to millions of Californians in October was the largest event our state had ever seen.”

“Today, we are investing hundreds of millions of dollars in our network resiliency to address these new challenges and will continue to work to ensure our customers have the connectivity they need,” Maviglio said.

Last year, the Legislature passed a law requiring telecommunications companies to report large outages to the Office of Emergency Services within one hour of discovering them. Officials are still developing regulations for that law.