California firefighters battled through the night to contain a fast-moving wildfire driven by high winds that was threatening to engulf thousands of buildings.Around 40 000 people were told to flee the Tick Fire, which was raging across 1,600 hectares just north of Los Angeles.The blaze broke out early on Thursday afternoon, burning several homes and structures and forcing the closure of a major highway and a number of roads, as some 500 firefighters backed by air tankers and helicopters battled the flames.There were no immediate reports of injury."We are urging everybody to evacuate at this time," a fire department spokesperson said.The fire erupted as much of the state was under a red-flag warning because of gusty winds, high temperatures and low humidity which make perfect conditions for wildfires.In northern California wine country, some 2 000 people were ordered to evacuate after a brush fire erupted late on Wednesday, quickly growing from a blaze of a few hundred hectares into an inferno, California fire officials said.About 500 responders battled the fire fed by wind gusts topping 110km/h.Mandatory evacuation orders were issued for the community of Geyserville and nearby vineyards after the fire started in a mountainous area and quickly spread, crossing a highway and moving toward homes, the Sonoma County Sheriff's Office said."If you're in Geyserville, leave now," the sheriff's office advised, citing an extraordinary threat to life and property.Winds out of the north were driving the fire as firefighters struggled to save homes.By early Thursday evening, the fire was five percent contained and several structures had burned, fire officials said. The blaze came amid official warnings that much of northern California and parts of the south were under imminent threat of fires into Friday because of blustery, dry weather and high temperatures.Another brush fire in San Bernardino County, about 95km east of Los Angeles, also prompted evacuation orders as it quickly burned 30 hectares.Hurried departuresPower was cut to some 180 000 customers in the northern part of the state on Thursday and similar preemptive shutoffs affected thousands of customers further south due to conditions that are ripe for wildfires.Power companies warned that additional power cuts could be ordered to reduce the risk of accidental fires.The strong winds in the north were expected to subside Friday but are forecast to pick up again on Sunday, the National Weather Service warned. Many residents of Geyserville said they barely had time to gather their belongings as the monster fire quickly approached the town, with embers igniting fires throughout the region."We thought we were a couple of miles from the fire," Dwight Monson, 68, told the Los Angeles Times. "But guess what - the winds."He said by the time his family got in their cars and escaped to the valley below, the flames were on the edge of their ranch.PG&E, the state's biggest utility, said in a statement that it had informed regulators that a jumper on a transmission tower near where officials said the fire had started was broken.The company - which has been held responsible for numerous wildfires in the state - said that even though power to nearly 28 000 customers in Sonoma County, including Geyserville, had been shut down on Wednesday, some of the high-voltage transmission lines were still operating when the fire broke out."We relied on the protocol and we still, at this point, do not know what exactly happened," PG&E CEO and president Bill Johnson told a news conference.This week's fires have erupted as the state is still recovering from deadly wildfires in 2017 and 2018 that killed more than 100 people.The fires have been fueled by years of drought and dry vegetation."This is an emotional time for many people," Sonoma County Sheriff Mark Essick told a news conference on Thursday. "It's only been two years since the fires that devastated our community. For many this will be a very stressful and anxious time."