About 20 firefighters helped bring the fire under control at Thorpe Willoughby, near Selby, on Saturday night.
It is not thought anyone was injured. An investigation is under way to find out how the fire started.
Pictures circulated on social media showed smoke from the fire was visible from several miles away from the site.
A large blaze has ripped through the site of a former mushroom farm in North Yorkshire.