Nolton Street in Bridgend town centre has been reopened to traffic following a fire at a vacant three-storey commercial property.
Before the road reopened the building, which is privately owned and is not maintained by the council, was inspected by local authority structural engineers and made safe.
This included the removal of loose roofing tiles, damaged guttering and other debris that could have potentially fallen to the street below.
A section of pavement remains closed to pedestrians immediately outside the building.
South Wales Fire and Rescue crews from Bridgend, Pencoed, Kenfig Hill and Cardiff Central attended the scene to tackle the blaze, which caused significant damage.
Cllr Richard Young, Cabinet Member for Communities, said:
“Bridgend County Borough Council had previously served a section 215 notice on the Swansea-based owners of the premises requiring them to undertake urgent work at the property.
“As this was not carried out, we are in the process of pursuing further action against them.
“I would like to thank the emergency services for their swift response as well as local residents, many of whom had to leave their homes while the blaze was underway, for their co-operation and understanding.”