Firefighters battled a blaze early Tuesday at a massive blimp hangar in Southern California that was built during World War II and was later featured in films and television shows.

The three-alarm fire erupted around 1 a.m. inside the north hangar of the mostly wooden structure at the former Marine Corps Air Station Tustin. Fire officials shared photos and video of flames raging inside the gutted structure.

Despite battling the blaze for hours, the Orange County Fire Authority said that the only way to fight the fire was to allow the structure to collapse.

"Due to the dynamic nature of the fire, and the imminent danger of collapse, we have determined the most operationally sound method is to allow the structure to collapse, at which point ground crews can move in closer, and aggressively work to extinguish the fire," the agency said.

SURVIVORS OF DEVASTATING WILDFIRES IN PARADISE, CALIFORNIA, CONTINUE TO FACE CHALLENGES 5 YEARS LATER

fire at blimp hangar

The fire broke out around 1 a.m. Tuesday at the north hangar at former Marine Corps Air Station Tustin. (Orange County Fire Authority )

The massive hangar stands 17 stories high and is more than 1,000 feet long and 300 feet wide. It was one of two built in 1942 for the U.S. Navy in the city of Tustin, about 35 miles southeast of Los Angeles.

fire at blimp hangar

Fire officials said the only way to fight the fire raging inside the mostly wooded structure was to let the hangar collapse. (Orange County Fire Authority )

OFFICIALS IN NORTH CAROLINA DECLARE STATE OF EMERGENCY AS WILDFIRES BURN HUNDREDS OF ACRES

The Navy installation became a Marine Corps air station in the 1950s and closed in 1999.

fire at blimp hangar

The hangar was built to house military blimps for the U.S. Navy during World War II. (FOX11 Los Angeles KTTV)

The hangars have been featured in Hollywood films and TV shows including "JAG," "The X Files," and "Pearl Harbor," along with commercials, according to FOX11 Los Angeles.

CLICK TO GET THE FOX NEWS APP

It was unclear how the fire started.

The Associated Press contributed to this report.