As the Dixie Fire swept through Greenville, Calif., Wednesday, leveling its downtown area, a firefighter was photographed saving an American flag from the side of a road with the inferno raging behind him.

A series of images taken by AFP photographer Josh Edelson shows the devastating fire and the destruction left behind the following morning in the historic town, which was established during the California Gold Rush.

A firefighter saves an American flag as flames consume a home during the Dixie fire in Greenville, California on August 4, 2021. - The Dixie fire burned through dozens of homes and businesses in downtown Greenville and continues to forge towards other residential communities. Officials in northern California on August 4, 2021 warned residents of two communities in the path of the raging Dixie fire to evacuate immediately as high winds whipped the flames onwards. (Photo by JOSH EDELSON / AFP) (Photo by JOSH EDELSON/AFP via Getty Images)

A firefighter saves an American flag as flames consume a home during the Dixie fire in Greenville, California on August 4, 2021. - The Dixie fire burned through dozens of homes and businesses in downtown Greenville and continues to forge towards other residential communities. Officials in northern California on August 4, 2021 warned residents of two communities in the path of the raging Dixie fire to evacuate immediately as high winds whipped the flames onwards. (Photo by JOSH EDELSON / AFP) (Photo by JOSH EDELSON/AFP via Getty Images) (Photo by JOSH EDELSON/AFP via Getty Images)

Several images show the moments when a firefighter reached for the flag, removed it from its pole, and carried it to safety as flames twice as tall as the firetruck raged behind him.

HOT, GUSTY WEATHER COULD MEAN EXPLOSIVE FIRE GROWTH IN WEST

Authorities were not immediately able to identify the firefighter or his unit. A huge number of firefighters have deployed to battle the massive fire, the sixth-largest in California history and the biggest one so far this year.

A Wednesday Facebook post from the Plumas County Sheriff’s Office warned people in the area, "you are in imminent danger and you MUST leave now!!"

Flames consume a home on Highway 89 as the Dixie Fire tears through the Greenville community of Plumas County, Calif., on Wednesday, Aug. 4, 2021. The fire leveled multiple historic buildings and dozens of homes in central Greenville. (AP Photo/Noah Berger)

Flames consume a home on Highway 89 as the Dixie Fire tears through the Greenville community of Plumas County, Calif., on Wednesday, Aug. 4, 2021. The fire leveled multiple historic buildings and dozens of homes in central Greenville. (AP Photo/Noah Berger) (AP Photo/Noah Berger)

The fire sparked three weeks ago and encompassed more than 504 square miles in the counties of Plumas and Butte as of Thursday evening. Hot, dry conditions and whipping winds have exacerbated the situation, along with dry underbrush.

It devastated Greenville.

"The Dixie Fire burnt down our entire downtown," Plumas County Supervisor Kevin Goss wrote in a Facebook post Thursday. "Our historical buildings, families’ homes, small businesses, and our children's schools are completely lost."

CLICK HERE TO GET THE FOX NEWS APP

In another post, he shared two photos of a street running through town. One showed tidy buildings and a couple of cars parked along the shoulder on a sunny day. The other showed one side of the street leveled by fire and the other aflame.

The Associated Press contributed to this report.