A significant piece of Lawson's rail history has been saved.
Sydney Trains had applied to the heritage division of the Office of Environment and Heritage to demolish the former Lawson station master's residence, built in 1896.
The demolition was part of Sydney Trains' upgrade to Lawson Station depot, which included the construction of a new depot building, landscaping and more car parking.
An Office of Environment and Heritage spokesperson said the application had been refused.
She said a new application from Sydney Rail had been approved last month, which involved locating the new maintenance depot and car parking further west, which allowed the station master's residence to be retained.
Earlier this year the Association of Concerned Mid-Mountains Residents had been particularly concerned at the prospect of the residence being demolished, saying it was one of the last original elements of the days when Lawson was a railway town.
Train drivers would pull up at Lawson's level station to take on water, clean out the fires and stop for refreshments, said local train enthusiast Colin Steele.
The homestead was used until the mid-1990s when it was abandoned due to cracking in the brickwork thought to have been caused by vibrations from major trackwork.