The Energy Department plans to offer a record $15 billion loan guarantee to Pacific Gas & Electric, California’s largest utility, to improve its electrical grid and fund climate resiliency projects, the department said Tuesday.

The loan guarantee is the biggest commitment to date from the department’s Loan Programs Office, which has doled out tens of billions of dollars in loans and guarantees under the Biden administration to fund energy and electric vehicle projects. The conditional commitment, which still has to be made final, will help PG&E invest in hydroelectric power generation, batteries and power lines.

PG&E, one of the largest utilities in the country, serving roughly 16 million people in Northern and Central California, is grappling with a surge of demand for electricity spurred by the shift to electric vehicles, the expansion of data centers and efforts to phase out fossil fuels. The company is also under pressure to prevent its equipment from setting off devastating fires.

“These infrastructure investments will help PG&E meet forecasted load growth, increase electric reliability and reduce costs for its consumers across California,” the Energy Department said in a statement.

State regulators have also put pressure on PG&E to limit rate increases for California residents, though officials have approved multiple rate increases this year.

This month, the Public Advocates Office, which represents consumers in utility rate cases before the California Public Utilities Commission, issued a report citing PG&E’s rate increases as the highest among the state’s investor-owned utilities.

The report said the utility’s rates increased 56% over a three-year period through October and 118% over the past 10 years. By comparison, Southern California Edison’s rates increased 48% during the three-year period and 86% over 10 years, and San Diego Gas and Electric’s rate rose 21% and 83%.

A variety of factors have driven PG&E’s rising prices. On top of swelling electricity demand, PG&E and the other utilities are facing the effects of climate change through extreme weather conditions — most notably, destructive wildfires that have wreaked havoc across California.

PG&E filed for bankruptcy protection in 2019, after a series of wildfires caused by the company’s equipment left it with billions of dollars in liability. The company emerged from bankruptcy in 2020.

That year, PG&E also pleaded guilty to involuntary manslaughter over its role in the 2018 Camp Fire, which killed 84 people.

In a statement, PG&E said the Energy Department’s loan guarantee could save ratepayers as much as $1 billion, in part by lowering how much the utility pays to borrow money.