The few remaining campers in Yosemite Valley packed up gear Wednesday and cleared the area for firefighters battling a huge wildfire near Yosemite National Park.

The sun rose in a smoke-filled sky over the scenic valley, which normally bustles with summer tourists but has largely emptied out after authorities reluctantly ordered the closure a day earlier.

Officials were quick to point out that Yosemite wasn't under imminent danger from the fire. Authorities decided on the closure to allow crews to perform protective measures such as burning brush along roadways without having to deal with traffic in the park that welcomes 4 million visitors annually.

A sign announces a highway closure in Yosemite National Park, Calif., on Tuesday, July 24, 2018, as the Ferguson Fire burns nearby. Highway 140 has been closed more than a week as firefighters work to contain the blaze. (AP PhotoNoah Berger)

A sign announces a highway closure in Yosemite National Park, Calif., on Tuesday, July 24, 2018, as the Ferguson Fire burns nearby. Highway 140 has been closed more than a week as firefighters work to contain the blaze. (AP PhotoNoah Berger)

One couple checked out of the Majestic Yosemite Hotel, while a large extended family from Los Angeles on an annual trip to the national park prepared to leave the Upper Pines campground.

"Very disappointed," Lisa Salgado said. "We look forward to this all year. This is the trip of our summer."

The group arrived Monday and had planned to stay through Saturday. Instead, they packed tents and other gear into vehicles, hoping they could find another campground elsewhere.

Vehicles leave Yosemite National Park, Calif., on Tuesday, July 24, 2018, as the Ferguson Fire burns nearby. Parts of the park, including Yosemite Valley, will close Wednesday as firefighters work to stop the blaze. (AP PhotoNoah Berger)

Vehicles leave Yosemite National Park, Calif., on Tuesday, July 24, 2018, as the Ferguson Fire burns nearby. Parts of the park, including Yosemite Valley, will close Wednesday as firefighters work to stop the blaze. (AP PhotoNoah Berger)

"So, this is a new memory," said Miguel Martinez. "I've never been evacuated before."

Yosemite Valley will be closed until at least Sunday, along with a winding, mountainous, 20-mile (32-kilometer) stretch of California's State Route 41 that leads into the area, park spokesman Scott Gediman said.

At least 1,000 campground and hotel bookings will be canceled — to say nothing of the impact on day visitors, park workers and small businesses along the highway, Gediman said. Rangers went to campsites one at a time to inform visitors of the closures. Hotels guests got phone calls and notes on their doors.

Francisco Avendano, visiting from Madrid, Spain, photographs Half Dome as smoke from the Ferguson Fire hangs over Yosemite National Park, Calif., on Tuesday, July 24, 2018. Parts of the park, including Yosemite Valley, will close Wednesday as firefighters work to contain the blaze. (AP PhotoNoah Berger)

Francisco Avendano, visiting from Madrid, Spain, photographs Half Dome as smoke from the Ferguson Fire hangs over Yosemite National Park, Calif., on Tuesday, July 24, 2018. Parts of the park, including Yosemite Valley, will close Wednesday as firefighters work to contain the blaze. (AP PhotoNoah Berger)

"This is the prime visitor season, so this wasn't an easy decision to make," Gediman said. "This was purely for safety's sake."

The last time the 7.5-mile-long (12-kilometer-long) valley was closed because of fire was 1990, he said.

Yosemite Valley is the centerpiece of the visitor experience, offering views of landmarks such as Half Dome, Bridal Veil Fall, El Capitan and Yosemite Falls. The glacial valley has been enveloped by a choking haze of smoke from the Ferguson Fire.

As smoke from the Ferguson Fire fills the sky, vehicles leave Yosemite Valley in Yosemite National Park, Calif., on Tuesday, July 24, 2018. Parts of the park, including Yosemite Valley, will close Wednesday as firefighters work to stop the blaze. (AP PhotoNoah Berger)

As smoke from the Ferguson Fire fills the sky, vehicles leave Yosemite Valley in Yosemite National Park, Calif., on Tuesday, July 24, 2018. Parts of the park, including Yosemite Valley, will close Wednesday as firefighters work to stop the blaze. (AP PhotoNoah Berger)

Over nearly two weeks, flames have churned through 60 square miles (155 square kilometers) of timber in steep terrain of the Sierra Nevada just west of the park. The fire was just 25 percent contained.

Mandatory evacuations are in place in several communities while other people have been told to get ready to leave if necessary.

More than 3,300 firefighters are working the fire, aided by 16 helicopters. One firefighter was killed July 14, and six others have been injured.

Rhonda Salisbury, CEO of Visit Yosemite/Madera County, said the regional visitors bureau has been relocating tourists statewide following the closure.

"People are heartbroken," she said. "Some want to ride it out for a few days and see if they can get back in the park." Others want help finding places to stay away from Yosemite.

Gediman suggested valley visitors divert to Tuolumne Meadows, on Yosemite's northern edge, or to Sequoia and Kings Canyon National Parks to the south.

"There are wonderful places to visit in the region, so we're asking people to consider alternative plans," he said.

In the state's far north, a 7-square-mile (18-square-kilometer) wildfire has forced the evacuation of French Gulch, a small Shasta County community that dates to the Gold Rush.