A firework at a gender reveal party triggered a wildfire in southern California that has destroyed 7,000 acres (2,800 hectares) and forced many residents to flee their homes, the fire department said Sunday.

More than 500 firefighters and four helicopters were battling the El Dorado blaze east of San Bernardino, which started Saturday morning, California Department of Forestry and Fire Protection (Cal Fire) said.

Record temperatures over the three-day Labor Day weekend have aggravated already dangerous fire conditions and further stressed exhausted California firefighters
Record temperatures over the three-day Labor Day weekend have aggravated already dangerous fire conditions and further stressed exhausted California firefighters AFP / Frederic J. BROWN

Residents of several communities in the area have been ordered to evacuate.

"CAL FIRE Law Enforcement has determined the El Dorado Fire, burning near Oak Glen in San Bernardino County, was caused by a smoke generating pyrotechnic device, used during a gender reveal party," Cal Fire said on Twitter.

"Those responsible for starting fires due to negligence or illegal activity can be held financially and criminally responsible," it warned.

Firefighters battle the Valley Fire in Jamul, near San Diego, California. The Valley Fire has destoyed 10,000 acres and 11 structures far, Cal Fire San Diego said
In this representational picture, firefighters battle the Valley Fire in Jamul, near San Diego, California. The Valley Fire has destoyed 10,000 acres and 11 structures far, Cal Fire San Diego said. AFP / SANDY HUFFAKER

Gender reveal parties are held during pregnancy to unveil the sex of the expected child, sometimes announced by pink or blue smoke fireworks.

California has been baking under scorching conditions with temperatures reaching a record 121 degrees Fahrenheit (49 Celsius) on Sunday in Woodland Hills, an all-time high for Los Angeles county, the National Weather Service said.

With the hot and dry conditions, California has suffered a particularly busy fire season this year, with more than 1.6 million acres destroyed so far, including in three of the biggest blazes in the state's history.

A rabbit crosses the road with flames from a brush fire during the Valley Fire in Jamul, California
A rabbit crosses the road with flames from a brush fire during the Valley Fire in Jamul, California AFP / SANDY HUFFAKER

In northern California, more than 200 people were airlifted to safety over the weekend after a fast-moving wildfire trapped them near the Mammoth Pool Reservoir northeast of Fresno.

They were rescued by military helicopters, with dozens packed into a Chinook, a photograph posted by the California National Guard showed.

The Creek Fire, which started on Friday in steep and rugged terrain, has so far spread to 73,000 acres, according to the US Forest Service, making it one of the largest.

More than 800 firefighters were battling the blaze.

Another rapidly-spreading fire near San Diego, Valley Fire, has so far spread to 10,000 acres and destroyed 11 structures, Cal Fire said.

California governor Gavin Newsom on Sunday declared a state of emergency for five counties affected by the Creek, El Dorado and Valley fires.

"The fires have burned tens of thousands of acres, destroyed homes and caused the evacuation of thousands of residents," the governor's office said.

Record temperatures over the three-day Labor Day weekend have aggravated already dangerous fire conditions and further stressed exhausted California firefighters.