A man has been arrested after firefighters battled a ferocious blaze in a derelict building in Sydney's west.
More than 50 firefighters were called to a building at Granville in the early hours of Tuesday.
The blaze broke out in the two-level building in Good Street and flames quickly grew as high as 10 metres.
At least 23 pieces of firefighting equipment, including aerial platforms and rescue units, were used to prevent the flames from spreading to vacant shops next door.
Firefighters were unable to enter the premises due to signs of potential building collapse.
They used aerial platforms to reach the roof and extinguish the blaze that took an hour to bring under control.
The cause of the blaze was still unknown but police arrested a 42-year-old man at the scene.
He was taken to Granville police station and is assisting officers with their inquiries.
Fire and Rescue NSW crews will remain on the scene to monitor the site for possible structural issues and potential hotspots.