Panic ensued after a barn that is home to a number of horses at an historic race track in the Hudson Valley was destroyed by a fire.

On Wednesday, a two-story barn at the Goshen Historic Track caught fire. The three-alarm fire started inside one barn and quickly spread to another barn.

People from nearby rushed over in hopes of saving a number of horses that were inside the barns.

"The horses were absolutely freaking out," said Charles Perlao told NBC. "They were running around, really kind of in a panic."

Thanks to the help of many Good Samaritans and firefighters, all 16 horses in the barns were rescued.

"All the horses are out safely. The end barn here is the blacksmith shop and it looks like that's a total disaster too," Museum director Janet Terhune told ABC.

The cause of the fire is still under investigation.

The barns are behind the Harness Racing Museum and Hall of Fame. The Goshen Historic Track is known as the “World’s Oldest Harness Track.”

Here are this week's Top 5 news stories from the Hudson Valley

More From Hudson Valley Post