Evacuation orders have been expanded to more mountain communities in California as a huge wildfire churned through the Sierra National Forest.

It was one of dozens of blazes crews battled during a heatwave that shattered records across the state.

Firefighters working in steep terrain through the night saved the tiny town of Shaver Lake from flames that roared down hillsides towards a marina.

To the north, about 30 houses were destroyed in the remote hamlet of Big Creek.

“About half the private homes in town burned down,” Big Creek resident Toby Wait said.

“Words cannot even begin to describe the devastation of this community. And it is a very close-knit community.”

A school, church, library, historic general store and a major hydroelectric plant were spared in the community of about 200 residents, Mr Wait told the Fresno Bee.

Sheriff’s deputies went door to door to make sure residents were complying with orders to leave.

Officials hoped to keep the fire from pushing west into rural towns along State Route 41 and possibly Yosemite National Park.

The blaze dubbed the Creek Fire has charred more than 114 square miles of timber after breaking out on Friday.

The 850 firefighters on the scene had yet to get any containment after three days of work in sweltering heat. There was no official tabulation yet of structures lost.

On Saturday, rescuers in military helicopters airlifted 207 people to safety after flames trapped them in a wooded camping area near Mammoth Pool Reservoir, north east of Fresno.

In southern California, crews scrambled to douse several fires that roared to life in searing temperatures, including one that closed mountain roads in Angeles National Forest.

Smoke from wildfires burning east of Los Angeles dims the sunrise
Smoke from wildfires burning east of Los Angeles dims the sunrise (John Antczak/AP)

The California Department of Forestry and Fire Protection (Cal Fire) said a blaze in San Bernardino County called the El Dorado Fire started on Saturday morning and was caused by a smoke-generating pyrotechnic device used by a couple to reveal their baby’s gender.

A fire in the Angeles National Forest north east of Los Angeles forced the evacuation of Mount Wilson Observatory.

In eastern San Diego County, the Valley Fire had destroyed at least 10 structures after burning 16 square miles and prompting evacuations near the remote community of Alpine in the Cleveland National Forest.

Daytime temperatures in fire zones neared or exceeded triple digits.

Central Los Angeles reached 111F (44C) on Sunday and a record-shattering high of 121F (49.4C) was recorded in the nearby Woodland Hills neighbourhood of the San Fernando Valley.

It was the highest temperature ever recorded in Los Angeles County, according to the National Weather Service.

Meanwhile, central San Francisco set a record for the day with a high of 100F (37.7C) on Sunday, smashing the previous mark by five degrees.

The exceptionally hot temperatures were driving the highest power use of the year, and transmission losses because of wildfires have cut into supplies.

Members of a hand crew work on the fire line in Yucaipa, California
Members of a hand crew work on the fire line in Yucaipa, California (Ringo HW Chiu/AP)

Cooler temperatures were expected on Tuesday but the weather change was also expected to bring winds that could fan wildfires.

Pacific Gas & Electric, the state’s largest utility serving customers in central and northern California, warned customers that it might cut power starting on Tuesday because of the increased fire danger.

Some of the state’s largest and deadliest fires in recent years have been sparked by downed power lines and other utility equipment.

All of northern California has moderate to severe drought conditions.

Cal Fire said 14,800 firefighters were battling 23 major fires in the state.

California has seen 900 wildfires since August 15, many of them started by an intense series of thousands of lightning strikes.

The blazes have burned more than 1.5 million acres (2,343 square miles).

There have been eight fire deaths and more than 3,300 structures destroyed.