A wildfire burning in the foothills northeast of Los Angeles came dangerously close a famous observatory early Wednesday.

Officials from Angeles National Forest said the Bobcat Fire came within 500 feet of the famed Mount Wilson Observatory in California, which played a pivotal role in early 20th-century astronomy.

The blaze has reached over 41,000 acres and is only 3% contained as of Wednesday morning.

WESTERN WILDFIRES RAGE AS CRIMINALS, LOOTERS HINDER FIREFIGHTING EFFORTS

Hundreds of firefighters have been battling the blaze since it started Sept. 6 near the Cogswell Dam and West Fork Day Use area.

A tree casts embers as the North Complex Fire burns in Plumas National Forest, Calif., on Monday, Sept. 14, 2020. (AP Photo/Noah Berger)

The observatory posted to Facebook on Tuesday that the blaze was less than one-third of a mile down the mountain as a timelapse showed the approaching flames.

Angeles National Forest officials said that firefighters were able to protect the historic site.

"Assisted by the outstanding defensible space of Mt. Wilson Observatory, firefighters installed hand and dozer line - strategically fired, and dropped water creating a strong protection point for Mt. Wilson," officials tweeted.

Flames can be seen approaching the Mt. Wilson Observatory as the Bobcat Fire approached the historic site on Sept. 15, 2020. (Mount Wilson Observatory)

The observatory is where astronomers confirmed that galaxies exist outside the Milky Way and that the universe is expanding.

The blaze remains a threat to foothill communities but officials say the fire behavior has moderated. The cause of the blaze remained under investigation, according to FOX11.

OREGON WILDFIRES CAUSE FIRE-DAMAGED TREE TO FALL ON STATE TROOPER'S VEHICLE

Since Sunday U.S. Forest Service officials pushed back the estimated time for full containment from Oct.15 to Oct. 30.

A truck sprays fire retardant on vegetation to help stop the spread of the North Complex Fire in Plumas National Forest, Calif., on Monday, Sept. 14, 2020. (AP Photo/Noah Berger)

Evacuation orders remain for parts of Sierra Madre and Arcadia due to the blaze.

CLICK HERE FOR MORE WEATHER COVERAGE FROM FOX NEWS

The South Coast Air Quality Management District has also extended a smoke advisory through Wednesday for most areas of Los Angeles County, even the coasts, due to the smoke from the blaze.

CLICK HERE FOR THE FOX NEWS APP

California is experiencing its worst fire season on record, with more than 3 million acres burned so far. The Bobcat Fire is one of several fires that sparked across the region as parts of California saw record-breaking temperatures over Labor Day weekend

Firefighter Cody Carter battles the North Complex Fire in Plumas National Forest, Calif., on Monday, Sept. 14, 2020. (AP Photo/Noah Berger)

More than 16,000 firefighters are battling blazes across the state.

The Associated Press contributed to this report.